Raised This Month: $ Target: $400
 0% 

get_user_origin(id,origin, 4 )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 10-23-2005 , 22:38   get_user_origin(id,origin, 4 )
Reply With Quote #1

according to funkwiki:

4 - Position from last bullet hit (only CS)

If you hit a player, does it give u the place on the player that it hit (origin wise) or the place on the wall behind him that the bullet THEN hit?

I'll be FORCED to test this if no one knows the answer...
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 10-23-2005 , 22:46  
Reply With Quote #2

sigh, for once v3x had the answer to my question (not this one) and allowed me to get around what I was going to do w/ that function.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 10-23-2005 , 22:47  
Reply With Quote #3

im guessing the origin where the bullet was removed so it can be player or wall.
Freecode is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 10-23-2005 , 22:47  
Reply With Quote #4

Wewt

Code:
get_user_attacker ( index, [ &weapon, &hitzone ] );
__________________
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
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 10-23-2005 , 22:51  
Reply With Quote #5

Code:
                if (mode == 4)         {             cpOrigin[0] = (long int)pPlayer->lastHit.x;             cpOrigin[1] = (long int)pPlayer->lastHit.y;             cpOrigin[2] = (long int)pPlayer->lastHit.z;             return 1;         }
so it returns the last bullet vectors just like it says. either a player if it hit a player or a wall if it hit a wall.
Freecode 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 00:01.


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