Warcraft-Source

General Content => Discussions => Topic started by: parajox on March 16, 2019, 10:37:42 AM

Title: Restrict Weapon CVARs not working
Post by: parajox on March 16, 2019, 10:37:42 AM
Hello,

if i use es wcs_restrict event_var(userid) all;es wcs_unrestrict event_var(userid) "knife,deagle" on a race, it won't work. I can still buy weapons.

Any solution for this?
Title: Re: Restrict Weapon CVARs not working
Post by: Tha Pwned on March 17, 2019, 10:08:47 PM
Hello,

if i use es wcs_restrict event_var(userid) all;es wcs_unrestrict event_var(userid) "knife,deagle" on a race, it won't work. I can still buy weapons.

Any solution for this?
Thanks for reporting! That'd be fixed in the newest version.
Title: Re: Restrict Weapon CVARs not working
Post by: WCS - Wookie on March 21, 2019, 12:27:03 AM
In the meantime you could always try manually restricting each weapon by name separating them by comma's. I used to have a block called es_kniferestrict.txt and i'd just load this block into the spawncmd of my races that needed to be restricted to knife.
Title: Re: Restrict Weapon CVARs not working
Post by: Tha Pwned on March 25, 2019, 10:31:44 PM
In the meantime you could always try manually restricting each weapon by name separating them by comma's. I used to have a block called es_kniferestrict.txt and i'd just load this block into the spawncmd of my races that needed to be restricted to knife.
While that certainly is a possibility, I'd rather have any problems you may find fixed, so we don't have to resort to workarounds, and can instead use the provided commands (or you can create your own - feel free to do a pull request on Github with your ideas!), so we can get a (somewhat) uniform way of doing things.
Title: Re: Restrict Weapon CVARs not working
Post by: WCS - Wookie on April 08, 2019, 01:31:30 AM
Quote
I'd rather have any problems you may find fixed, so we don't have to resort to workarounds,


Hey no arguments from me around that one Pwned. It's always better to cure the illness than put a bandaid on it.