Raised This Month: $ Target: $400
 0% 

Script fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kmal2t
BANNED
Join Date: Apr 2006
Old 04-19-2006 , 01:17   Script fix
Reply With Quote #1

brawr

Last edited by kmal2t; 05-21-2007 at 04:41.
kmal2t is offline
kmal2t
BANNED
Join Date: Apr 2006
Old 04-19-2006 , 21:41  
Reply With Quote #2

This is an easy task. Can no one take 2 seconds to show me where it goes?
kmal2t is offline
kmal2t
BANNED
Join Date: Apr 2006
Old 04-20-2006 , 03:39  
Reply With Quote #3

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?
kmal2t is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-20-2006 , 03:50  
Reply With Quote #4

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.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
kmal2t
BANNED
Join Date: Apr 2006
Old 04-20-2006 , 05:35  
Reply With Quote #5

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.
kmal2t 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 05:06.


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