Author Topic: Weapon restriction while using ultimate with Vagabond  (Read 1840 times)

Zwizzor

  • Newbie
  • *
  • Posts: 6
    • View Profile
Weapon restriction while using ultimate with Vagabond
« on: December 30, 2013, 09:56:23 AM »
Hi guys, I need help to disable scout use while using the ultimate on the race vagabond here :
http://pastebin.com/Pn9MFY9c

What I exactly need is to keep the race working as it is already, but disabling the weapon_scout while being invisible, then getting back the scout when going out of invisibility...
I've tried to do it by myself but I've never coded in sourcepawn before...

Thank you very much for taking the time to help me !

Remy Lebeau

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
Re: Weapon restriction while using ultimate with Vagabond
« Reply #1 on: December 30, 2013, 02:20:21 PM »
add this at line 303

Code: [Select]
War3_SetBuff( client, bDisarm, thisRaceID, true  );
and this at line 309

Code: [Select]
War3_SetBuff( client, bDisarm, thisRaceID, false );
That should do it.

Zwizzor

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Weapon restriction while using ultimate with Vagabond
« Reply #2 on: December 30, 2013, 05:38:06 PM »
Thank you, I will test ASAP

Zwizzor

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Weapon restriction while using ultimate with Vagabond
« Reply #3 on: December 31, 2013, 05:29:39 AM »
It works fine, thank you !
« Last Edit: December 31, 2013, 05:36:41 AM by Zwizzor »

Remy Lebeau

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
Re: Weapon restriction while using ultimate with Vagabond
« Reply #4 on: December 31, 2013, 05:54:44 PM »

Okazakir

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Weapon restriction while using ultimate with Vagabond
« Reply #5 on: January 11, 2016, 11:24:52 PM »
Bobcats are playing it just seems to be fun, I like games like this.