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

War3:Source
October 24, 2012, 03:12:24 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: Getting a weapon's default ammunition  (Read 283 times)
Necavi
Full Member
***
Posts: 223


View Profile
« on: September 23, 2010, 06:18:04 PM »

Does anyone know of a way to find out what a weapon's default max ammunition is?
Logged

Glider⠠⠵
Global Moderator
Sr. Member
*****
Posts: 413


⠠⠵


View Profile
« Reply #1 on: September 24, 2010, 11:19:32 AM »

You can define an array with max ammo values beforehand and get the weapon id/name and then get it from the array, but you can't do it dynamically (at least not in TF2)
Logged

Necavi
Full Member
***
Posts: 223


View Profile
« Reply #2 on: September 24, 2010, 02:08:14 PM »

Well, this would be for CS:S, but damn, I was hoping I wouldn't have to use an array for this, I'll look into it a bit more though.
Logged

Necavi
Full Member
***
Posts: 223


View Profile
« Reply #3 on: September 26, 2010, 01:04:12 AM »

Yeah, it looks like I'm going to use an array, there has been no reply on the sourcemod forums regarding this either.
Logged

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!