Raised This Month: $ Target: $400
 0% 

& FL_ONGROUND


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 01-27-2010 , 11:51   & FL_ONGROUND
Reply With Quote #1

Is this flag also detects is player on other player's head?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-27-2010 , 11:55   Re: & FL_ONGROUND
Reply With Quote #2

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 );
__________________
xPaw is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 01-27-2010 , 12:01   Re: & FL_ONGROUND
Reply With Quote #3

I don't need it, just asked,because I thought that didn't detect it

Hmm interesting stock :]
__________________
xbatista is offline
Send a message via Skype™ to xbatista
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-27-2010 , 12:02   Re: & FL_ONGROUND
Reply With Quote #4

Quote:
Originally Posted by xPaw View Post
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 ) ) )
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-27-2010 , 13:10   Re: & FL_ONGROUND
Reply With Quote #5

Quote:
Originally Posted by Exolent[jNr] View Post
*_groundentity is set when player is on something.
If player goes in air, *_groundentity stays its same value until player lands.
Alright.
__________________
xPaw is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 01-27-2010 , 13:21   Re: & FL_ONGROUND
Reply With Quote #6

Quote:
Originally Posted by xPaw View Post
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..
Doc-Holiday is offline
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 01-27-2010 , 13:33   Re: & FL_ONGROUND
Reply With Quote #7

Interesting
01101101 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-27-2010 , 16:55   Re: & FL_ONGROUND
Reply With Quote #8

Quote:
Originally Posted by NcB_Sav View Post
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
__________________
Bugsy is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 01-27-2010 , 17:12   Re: & FL_ONGROUND
Reply With Quote #9

Quote:
Originally Posted by Bugsy View Post
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.
Doc-Holiday 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 07:22.


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