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

War3:Source
September 21, 2012, 10:20:39 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: Nightcrawler  (Read 481 times)
gghh3322
Jr. Member
**
Posts: 56


View Profile
« on: September 07, 2010, 12:24:12 AM »

6sec Noclip
but.. it's so fast maybe need balance.. (4sec)
if stuck in wall
teleport before use power position

Need Feedback

Edit.  Fixed Countdown error(print only 0sec)
« Last Edit: September 07, 2010, 12:26:24 AM by gghh3322 » Logged
Scyther
Full Member
***
Posts: 120


View Profile Email
« Reply #1 on: September 07, 2010, 04:49:07 AM »

God your making races so fast :L keep it up man Cheesy
Logged
gghh3322
Jr. Member
**
Posts: 56


View Profile
« Reply #2 on: September 07, 2010, 07:49:43 AM »

how to more rightly chk stuck .. Help please
Code:
public OnPowerCommand(client,herotarget,bool:pressed){
//PrintToChatAll("%d",herotarget);
if(SHHasHero(client,herotarget)&&herotarget==thisRaceID){
//PrintToChatAll("1");
if(pressed && War3_SkillNotInCooldown(client,thisRaceID,SKILL_NOCLIP,true) && !bNoclip[client]){
GetClientAbsOrigin(client,oldpos[client]);
bNoclip[client]=true;
sectemp[client]=skill_sec;
War3_SetBuff(client,bNoClipMode,thisRaceID,true);
CreateTimer(0.0,TurnNoClip,client);
W3FlashScreen(client,{0,0,0,220},0.5,_,FFADE_STAYOUT);
War3_CooldownMGR(client,25.0,thisRaceID,SKILL_NOCLIP,_,_,_,"Noclip");
}
}
}
public Action:TurnNoClip(Handle:h,any:client){
if(sectemp[client]<1.0)
{
War3_SetBuff(client,bNoClipMode,thisRaceID,false);
GetClientAbsOrigin(client,newpos[client]);
newpos[client][2]+=1.0;
TeleportEntity(client,newpos[client],NULL_VECTOR,NULL_VECTOR);
GetClientAbsOrigin(client,newpos[client]);
bNoclip[client]=false;
W3FlashScreen(client,{0,0,0,0},0.1,_,(FFADE_IN|FFADE_PURGE));
CreateTimer(0.2,ChkStuck,client);
}
else{
PrintCenterText(client, "Warning: Time limit : %.0f sec",sectemp[client]);
sectemp[client]-=1.0;
CreateTimer(1.0,TurnNoClip,client);
}
}
public Action:ChkStuck(Handle:h,any:client){
new Float:location[3];
GetClientAbsOrigin(client,location);
if(GetVectorDistance(newpos[client],location)<0.001)
{
PrintHintText(client, "You stucked, Teleport Old position");
TeleportEntity(client,oldpos[client],NULL_VECTOR,NULL_VECTOR);
}
}
Logged
MrBrightSide
Newbie
*
Posts: 11


View Profile Email
« Reply #3 on: January 15, 2012, 12:22:36 AM »

i no this is extremly old but can you add a cooldown?
Logged
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!