AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get_user_origin(id,origin, 4 ) (https://forums.alliedmods.net/showthread.php?t=19718)

GHW_Chronic 10-23-2005 22:38

get_user_origin(id,origin, 4 )
 
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 10-23-2005 22:46

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.

Freecode 10-23-2005 22:47

im guessing the origin where the bullet was removed so it can be player or wall.

v3x 10-23-2005 22:47

Wewt :)

Code:
get_user_attacker ( index, [ &weapon, &hitzone ] );

Freecode 10-23-2005 22:51

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.


All times are GMT -4. The time now is 00:01.

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