Raised This Month: $ Target: $400
 0% 

detecting player sprayed?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 05-31-2005 , 11:43   detecting player sprayed?
Reply With Quote #1

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

how do i do that?
__________________
Plugins:
none

n0obie4life is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-31-2005 , 14:39  
Reply With Quote #2

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.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
cs.war3lt.com
Junior Member
Join Date: May 2005
Old 05-31-2005 , 16:09  
Reply With Quote #3

can i get the better way ?
__________________
!!! NO WOMANS !!!, visit me at www.userphp.com >- cooming soon
cs.war3lt.com is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-31-2005 , 16:13  
Reply With Quote #4

Didn't say there was..

Also, that img in your sig is too damn big..
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 06-01-2005 , 00:13  
Reply With Quote #5

Quote:
Originally Posted by cs.war3lt.com
can i get the better way ?
hey stop hijacking my thread .

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

n0obie4life is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 06-01-2005 , 09:48  
Reply With Quote #6

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)..>.<.
__________________
Plugins:
none

n0obie4life is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 06-02-2005 , 09:58  
Reply With Quote #7

err v3x?
__________________
Plugins:
none

n0obie4life is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 06-03-2005 , 12:19  
Reply With Quote #8

I'm at school atm. If I'm allowed on today, I'll help you.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 06-03-2005 , 23:59  
Reply With Quote #9

Quote:
Originally Posted by v3x
I'm at school atm. If I'm allowed on today, I'll help you.
thanks.
__________________
Plugins:
none

n0obie4life is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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