Raised This Month: $ Target: $400
 0% 

set_pev ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bwgrubbs1
Senior Member
Join Date: Sep 2006
Old 06-19-2007 , 14:50   set_pev ?
Reply With Quote #1

I have this code for a new entity that i am touching that will give you low gravity for 4 seconds and execute jump.

My way of thinking is that this would work..but it seems not to.

Here is what I have ...

Code:
public fwdTouch(ent, id) {     (...)     else if(equali(szClassname, "lowgrav"))     {         set_pev(id,pev_gravity,200);         client_cmd(id, "+jump");         set_task(4.0,"normal_grav");         return PLUGIN_HANDLED_MAIN;     } return PLUGIN_HANDLED_MAIN; }

Code:
public normal_grav(id) {     set_pev(id,pev_gravity,800);     client_cmd(id, "-jump"); }

The problems I am having are when you touch entity it gives you low gravity, but i think it starts out around 200 then goes to 0 or a neg value...cuz you never come down. Then on new round you can't jump...which i think is because your gravity is still set too low.

Anyone...lol ?
bwgrubbs1 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 21:32.


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