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-25 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog

War3:Source

General Discussion => War3: Source - General Discussion => Topic started by: Chuck on March 12, 2012, 03:09:40 PM



Title: Ability and ultimate command!
Post by: Chuck on March 12, 2012, 03:09:40 PM
Hey Ownz, for next release make the ability and ultimate better command like bind f ultimate and bind f ability without using +! That way i won't have to revise it for next update! That way people won't complain that bind doesn't work because they think wcs and war3 are same bind


Title: Re: Ability and ultimate command!
Post by: Gliderā  ā µ on March 12, 2012, 03:20:40 PM
The + makes it so that when you press the key it fires +ultimate and when you release it it fires -ultimate. This is passed on to OnUltimate and OnAbility as pressed parameter and is necessary for more complex ultimates/abilitys that require pressing the key for several seconds (eg teleport where you can charge the range by holding down)


Title: Re: Ability and ultimate command!
Post by: Ownz on March 12, 2012, 11:23:23 PM
   RegConsoleCmd("ability",War3Source_OldWCSCommand);
      RegConsoleCmd("ability1",War3Source_OldWCSCommand);
      RegConsoleCmd("ability2",War3Source_OldWCSCommand);
      RegConsoleCmd("ability3",War3Source_OldWCSCommand);
      RegConsoleCmd("ability4",War3Source_OldWCSCommand);
      RegConsoleCmd("ultimate",War3Source_OldWCSCommand);