RuneStorm
http://www.runestorm.com/forums/

Help needed to code a stat to increase BW Weapons Magazines
http://www.runestorm.com/forums/viewtopic.php?f=69&t=74771
Page 1 of 1

Author:  Nighthawk2088 [ Fri Oct 03, 2008 10:29 am ]
Post subject:  Help needed to code a stat to increase BW Weapons Magazines

I wasn't exactly sure where this should go and I had seen someone working on a UT2004RPG fix with BW but I don't want to essentially hijack the user's thread with a question that doesn't seem to be fully relevant to their project. I assumed requests was the best place for this type of topic. I apologize if I was wrong.

If anyone is familiar with Ballistic Weapons, UT2004RPG and DruidsRPG code could help me out with this custom stat I'd appreciate it greatly.

My problem:

I want to make a stat that would increase the Magazine of the Ballistic Weapons that players use. The Max Ammo Stat only increases either the Ammo reserve (the extra ammo in stock one can use to reload) if Reloading is enabled or the Ammo amount if Reloading is disabled for BW. I've modified a bit of code that will successfully change the magazine's size upon picking up ammo for the weapon but (this may or may not be more relevant to the BW mod than the RPG mods) I would like to change it so that when I start the match & reload the weapon it uses the value of the MagAmmo stat.

Extra Note: I can't seem to find the place in the source code for UT2004RPG where the values for the stats are handled. My MagAmmo stat remains blank in the GUI and either I've missed where to put something in or I don't know what to code so it shows a 0 initially like the rest of the stats.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/