AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   detecting player sprayed? (https://forums.alliedmods.net/showthread.php?t=13850)

n0obie4life 05-31-2005 11:43

detecting player sprayed?
 
detect if play is dead and a spray is sprayed on him...

how do i do that?

v3x 05-31-2005 14:39

Umm.. this is how I would do it..

1) Make a global origin var.
2) Use client_impulse(id,impulse) . Store the origin in the origin var.
3) Store the player's origin in another global var when he dies.
4) Compare both origins. If origin1 is <= origin2 - do something.

There's probably a better way that I don't know of.

cs.war3lt.com 05-31-2005 16:09

can i get the better way ? :D

v3x 05-31-2005 16:13

Didn't say there was..

Also, that img in your sig is too damn big..

n0obie4life 06-01-2005 00:13

Quote:

Originally Posted by cs.war3lt.com
can i get the better way ? :D

hey stop hijacking my thread :P.

okay v3x, thanks. i'll try and make-do with what you just said.

n0obie4life 06-01-2005 09:48

Quote:

Originally Posted by v3x
Umm.. this is how I would do it..

1) Make a global origin var.
2) Use client_impulse(id,impulse) . Store the origin in the origin var.
3) Store the player's origin in another global var when he dies.
4) Compare both origins. If origin1 is <= origin2 - do something.

There's probably a better way that I don't know of.

okay how would i do that ;).

i figured out that impulse 201 is actually for the spray..(after about since playing cs from beta)..>.<.

n0obie4life 06-02-2005 09:58

err v3x?

v3x 06-03-2005 12:19

I'm at school atm. If I'm allowed on today, I'll help you.

n0obie4life 06-03-2005 23:59

Quote:

Originally Posted by v3x
I'm at school atm. If I'm allowed on today, I'll help you.

thanks.


All times are GMT -4. The time now is 16:49.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.