Call of Duty 5: World at War => Tutorial Desk => Scripting => Topic started by: Scobalula on March 23, 2016, 07:38:10 pm
Title: [Tutorial] Max Ammo: Fill Clip
Post by: Scobalula on March 23, 2016, 07:38:10 pm
A max ammo should be a "max ammo" and since I liked in maps like Hotel V2 that it fills your clip I decided to just make a small edit to my powerups gsc to do it which I will also show you guys how to do.
First go to root\raw\maps and copy the _zombiemode_powerups.gsc to your mods maps folder, usually in root\mods\modname\maps. If the maps folder doesn't exist, create one.
Next we need to open it with a text editor, something like Notepad++ or Sublime text is preferred.
Search for this with the find function:
That should bring you to this function:
Change the entire function to this:
What we're doing with this, is we're using WeaponClipSize to get the clip size which is then set by the SetWeaponAmmoClip.
Title: Re: [Tutorial] Max Ammo: Fill Clip
Post by: daedra descent on March 27, 2016, 04:40:42 am
great tutorial Scobalula. Fast, clean, efficient, and best of all, error free. +1 respect.
Title: Re: [Tutorial] Max Ammo: Fill Clip
Post by: PlutoBro on March 27, 2016, 08:45:40 am
This is great, I like not having to reload. If only max ammos worked on bouncing betty's. Oh well. Thanks for posting this, will be great for future use.
Title: Re: [Tutorial] Max Ammo: Fill Clip
Post by: Scobalula on March 27, 2016, 10:59:32 am
great tutorial Scobalula. Fast, clean, efficient, and best of all, error free. +1 respect.
Thanks man. Appreciate the feedback. :D
Title: Re: [Tutorial] Max Ammo: Fill Clip
Post by: HitmanVere on March 27, 2016, 12:48:57 pm
I cleaned up the topic fully from discussion about someone stealing other peoples line of code, which went way too off-topic. Lets keep this topic clean, guys