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 ?