Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-10-24 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
October 24, 2012, 03:26:49 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Passive speed with a certain weapon  (Read 335 times)
Scyther
Full Member
***
Posts: 120


View Profile Email
« on: April 04, 2011, 04:16:50 AM »

I want to have extra speed while using a knife, so far i have this but i dont know how i can make it check over and over.
Code:
public InitPassiveSkills(client){
if(SHHasHero(client,thisRaceID))
{
decl String:weapon[64];
GetClientWeapon(client, weapon, sizeof(weapon));

if(StrEqual(weapon,"weapon_knife"))
{
War3_SetBuff(client,fMaxSpeed,thisRaceID,1.25);
}
}
}


Logged
Glider⠠⠵
Global Moderator
Sr. Member
*****
Posts: 413


⠠⠵


View Profile
« Reply #1 on: April 04, 2011, 07:01:19 AM »

Timer that repeats every 0.01 seconds.
Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« Reply #2 on: April 04, 2011, 09:59:53 AM »

ur gonna kill it
0.1 seconds is better
Logged

DarkEnergy
Scyther
Full Member
***
Posts: 120


View Profile Email
« Reply #3 on: April 04, 2011, 04:38:30 PM »

Yeah i had the timer and it didnt work but i figured out why in the end Tongue
Wolverine superhero done! Tongue
Logged
Glider⠠⠵
Global Moderator
Sr. Member
*****
Posts: 413


⠠⠵


View Profile
« Reply #4 on: April 04, 2011, 07:30:38 PM »

ur gonna kill it
0.1 seconds is better

Not like it matters

Quote
The smallest possible interval is 0.1 seconds.

http://wiki.alliedmods.net/Timers_%28SourceMod_Scripting%29#Accuracy
Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« Reply #5 on: April 05, 2011, 12:40:55 PM »

internally limited or not, still should not use anything less than 0.1
Logged

DarkEnergy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!