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: -El Diablo on March 16, 2012, 04:35:49 AM



Title: W3Buff / Melee only??
Post by: -El Diablo on March 16, 2012, 04:35:49 AM
Is there a melee only option in the W3Buff system that isn't documented?

If not, can a melee only option be added to the W3Buff system?


Title: Re: W3Buff / Melee only??
Post by: Necavi on March 16, 2012, 04:55:15 AM
Well, there's War3_WeaponRestrictTo("weapon_knife"); (for CS:S) I don't recall how it is delimited, I think commas? So War3_WeaponRestrictTo("weapon_knife,weapon_deagle");


Title: Re: W3Buff / Melee only??
Post by: Vulpone on March 16, 2012, 05:41:46 AM
Well, there's War3_WeaponRestrictTo("weapon_knife"); (for CS:S) I don't recall how it is delimited, I think commas? So War3_WeaponRestrictTo("weapon_knife,weapon_deagle");

Actually, with the correct parameters, it's:
War3_WeaponRestrictTo(client, raceid*, "weapon_knife;weapon_ak;weapon_whatever");

The different weapons are separated by a semicolon.

*: not supposed to be a pointer, but an annotation:  (raceid = thisRaceID if you followed the usual pattern. So don't worry if you dunno what that is.)


Title: Re: W3Buff / Melee only??
Post by: -El Diablo on March 16, 2012, 05:53:24 AM
I don't think that works for TF2, does it?


Title: Re: W3Buff / Melee only??
Post by: Ownz on March 16, 2012, 11:31:54 AM
theres no set delimiter, its just a plain string search is what the restriction engine does