|
|
|
2 registered members (TipmyPip, Quad),
4,536
guests, and 4
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
C_Trace Result question
#374048
06/15/11 01:05
06/15/11 01:05
|
Joined: Apr 2005
Posts: 1,988 Canadian, Eh
DLively
OP
Serious User
|
OP
Serious User
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
|
Hey everyone. Is it possible to check to see if only a block was hit with a c_trace result? This checks to see if an entity was hit:
trace_mode = ignore_me + ignore_you + use_box + ignore_passable;
trace(player_sword.sword_tip,player_sword.sword_base);
if (result != 0){
if (you != null) {
if(you.pain==0){
you.health -= sword_power;
you.pain = 1;
}
}
}
Last edited by DevoN; 06/15/11 01:09.
|
|
|
Re: C_Trace Result question
[Re: snake67]
#374055
06/15/11 03:40
06/15/11 03:40
|
Joined: Apr 2005
Posts: 1,988 Canadian, Eh
DLively
OP
Serious User
|
OP
Serious User
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
|
hey thanks superku =] Got it working now, thanks to your brilliance. Thank you too snake67, but you were to late 
Last edited by DevoN; 06/15/11 03:41.
|
|
|
|
|
|
|