Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 03-24-2009 , 17:16   Re: disable gravity for player (make him float)
Reply With Quote #11

Quote:
"ent" is the player that you wan't to make float.
"host" is the player that is having "ent" modified in his/her game.
"player" is a check to show that "ent" and "host" are both players. It's like doing fm_is_ent_classname(ent, "player") && fm_is_ent_classname(host, "player").
Thanks for info!
Quote:
All that code does is make the player appear to be floating.
So, player is not really floating? In that case it's not what i need, because set_pev(id, pev_velocity, velocity) will not work correctly.

Thank you anyway!
__________________


Last edited by SonicSonedit; 03-25-2009 at 10:31.
SonicSonedit is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 03-25-2009 , 05:59   Re: disable gravity for player (make him float)
Reply With Quote #12

I still didn't find solution for this problem!
Can anyone help me?
I will really appreciate your help!
__________________

SonicSonedit is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 03-25-2009 , 20:03   Re: disable gravity for player (make him float)
Reply With Quote #13

Quote:
Originally Posted by SonicSonedit View Post
I still didn't find solution for this problem!
Can anyone help me?
I will really appreciate your help!
Here is a hero that has a flight system . Hope it helps
http://forums.alliedmods.net/showthread.php?t=30107
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 03-26-2009 , 05:32   Re: disable gravity for player (make him hover fly/float)
Reply With Quote #14

ot_207
Thank you, i'll check out it's code!
__________________

SonicSonedit is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 03-26-2009 , 06:06   Re: disable gravity for player (make him hover fly/float)
Reply With Quote #15

heh, it's fly code is
Quote:
set_user_gravity(id, 0.001)
hmm, i just remembered!
there is a trigger_gravity entity in CS!
I'll try create it at the player's position and then remove it.
__________________

SonicSonedit is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 03-26-2009 , 06:59   Re: disable gravity for player (make him hover fly/float)
Reply With Quote #16

If you create and remove it, the entity won't have any effect.
BOYSplayCS is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 03-26-2009 , 10:09   Re: disable gravity for player (make him hover fly/float)
Reply With Quote #17

Quote:
If you create and remove it, the entity won't have any effect.
We'll see... about that. (c) G-Man
__________________

SonicSonedit is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 03-26-2009 , 10:53   Re: disable gravity for player (make him hover fly/float)
Reply With Quote #18

Are you an idiot?
BOYSplayCS is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 03-26-2009 , 13:33   Re: disable gravity for player (make him hover fly/float)
Reply With Quote #19

I used infamous G-Man quote to say that I'll try anyway and see what happened.
what's your problem?
__________________

SonicSonedit is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 03-26-2009 , 18:02   Re: disable gravity for player (make him hover fly/float)
Reply With Quote #20

My problem is that you sir, are an idiot.
BOYSplayCS 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 18:01.


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