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:28:34 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: W3Buff / Melee only??  (Read 305 times)
-El Diablo
Full Member
***
Posts: 175


View Profile
« 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?
Logged
Necavi
Full Member
***
Posts: 217


View Profile
« Reply #1 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");
Logged

Vulpone
Full Member
***
Posts: 140



View Profile Email
« Reply #2 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.)
Logged

Sapere aude!
-El Diablo
Full Member
***
Posts: 175


View Profile
« Reply #3 on: March 16, 2012, 05:53:24 AM »

I don't think that works for TF2, does it?
Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2032



View Profile WWW Email
« Reply #4 on: March 16, 2012, 11:31:54 AM »

theres no set delimiter, its just a plain string search is what the restriction engine does
Logged

DarkEnergy
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!