Raised This Month: $ Target: $400
 0% 

disable gravity for player (make him hover fly/float)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-24-2009 , 16:41   Re: disable gravity for player (make him float)
Reply With Quote #8

Try this:
Code:
public plugin_init() {     register_forward(FM_AddToFullPack, "FwdAddToFullPack", 1); } public FwdAddToFullPack(es, e, ent, host, hostflags, player, pSet) {     if( !player ) return;         static Float:current_origin[3];     pev(ent, pev_origin, current_origin);         engfunc(EngFunc_DropToFloor, ent);         static Float:new_origin[3];     pev(ent, pev_origin, new_origin);         new_origin[2] += 30.0; // height above ground         set_pev(ent, pev_origin, current_origin);         if( new_origin[2] > current_origin[2] )     {         set_es(es, ES_Origin, new_origin);     } }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 03-25-2009 at 16:20.
Exolent[jNr] is offline
 



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 09:02.


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