AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   & FL_ONGROUND (https://forums.alliedmods.net/showthread.php?t=116919)

xbatista 01-27-2010 11:51

& FL_ONGROUND
 
Is this flag also detects is player on other player's head?

xPaw 01-27-2010 11:55

Re: & FL_ONGROUND
 
Should.

Maybe you will want to have this stock
Code:
bool:IsPlayerOnPlayer( const id )     return bool:( 1 <= entity_get_edict( id, EV_ENT_groundentity ) <= g_iMaxPlayers );

xbatista 01-27-2010 12:01

Re: & FL_ONGROUND
 
I don't need it, just asked,because I thought that didn't detect it

Hmm interesting stock :]

Exolent[jNr] 01-27-2010 12:02

Re: & FL_ONGROUND
 
Quote:

Originally Posted by xPaw (Post 1069597)
Should.

Maybe you will want to have this stock
Code:
bool:IsPlayerOnPlayer( const id )     return bool:( 1 <= entity_get_edict( id, EV_ENT_groundentity ) <= g_iMaxPlayers );

*_groundentity is set when player is on something.
If player goes in air, *_groundentity stays its same value until player lands.

Code:
/*stock bool:IsPlayerOnPlayer( const iPlayer ) {     return ( ( entity_get_int( iPlayer, EV_INT_flags ) & FL_ONGROUND ) && is_user_alive( entity_get_edict( iPlayer, EV_ENT_groundentity ) ) ); }*/ #define IsPlayerOnPlayer(%1) ( ( entity_get_int( %1, EV_INT_flags ) & FL_ONGROUND ) && is_user_alive( entity_get_edict( %1, EV_ENT_groundentity ) ) )

xPaw 01-27-2010 13:10

Re: & FL_ONGROUND
 
Quote:

Originally Posted by Exolent[jNr] (Post 1069607)
*_groundentity is set when player is on something.
If player goes in air, *_groundentity stays its same value until player lands.

Alright.

Doc-Holiday 01-27-2010 13:21

Re: & FL_ONGROUND
 
Quote:

Originally Posted by xPaw (Post 1069676)
Alright.

Man i dont know how you guys think that shit up... lol...

I have a heard enough time with my super super simple scripts..

01101101 01-27-2010 13:33

Re: & FL_ONGROUND
 
Interesting

Bugsy 01-27-2010 16:55

Re: & FL_ONGROUND
 
Quote:

Originally Posted by NcB_Sav (Post 1069689)
Man i dont know how you guys think that shit up... lol...

I have a heard enough time with my super super simple scripts..

you can figure most things out by looking through the sdk or with trial and error

Doc-Holiday 01-27-2010 17:12

Re: & FL_ONGROUND
 
Quote:

Originally Posted by Bugsy (Post 1069947)
you can figure most things out by looking through the sdk or with trial and error

Thats usally how i do things lol.. thats why it takes me months to write a script to make some one bleed out. hahaha...

Which reminds me i have to do a write up on it and relese my Virtual reality plugin.

i have 3 on sourcemod and non on cz where i actually play lol.. well i have 1 it hasnt gotten approved though.


All times are GMT -4. The time now is 07:22.

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