AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Script fix (https://forums.alliedmods.net/showthread.php?t=27289)

kmal2t 04-19-2006 01:17

Script fix
 
brawr

kmal2t 04-19-2006 21:41

This is an easy task. Can no one take 2 seconds to show me where it goes?

kmal2t 04-20-2006 03:39

Ok I found that I'd need a set_task, something I think like

start_speed then

set_task(0.1, "stop_speed") or something.

Why can't I get help on an actual question?

GHW_Chronic 04-20-2006 03:50

HOLY SHIT

Engine + Fakemeta

server_frame + prethink + postthing

OMFG LAG

Code:
//PreThink         if((newButton[id] & IN_JUMP) && (flags & FL_ONGROUND) && !caughtJump[id] && !(oldButton & IN_JUMP) && !numJumps[id])             {             caughtJump[id] = true             entity_get_vector(id,EV_VEC_velocity,jumpVeloc[id])             jumpVeloc[id][2] = get_cvar_float("walljump_str")             start_speed(id) //HERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!             }

Code:
public server_frame()     {     for(new i=0; i < get_maxplayers(); i++)         {         if(is_sprinting[i] == true)             {             set_speed(i);             end_speed(id) //HERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!             }         }     }

It should look just like that if I'm understanding your question correctly.

kmal2t 04-20-2006 05:35

Thanks dude it works great now!

And it actually doesn't cause lag at all. You will however notice a strange choppyness if you already have high ping.


All times are GMT -4. The time now is 05:06.

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