Download the script and put it in your mods\mapname\maps\ folder. Next make these changes: (make sure you edit in your mods folder and not in your RAW! )
-UPDATE- The script is now updated with seperate triggers to buy the special ammo from. You can only buy the ammo at these triggers. You are also able to set the price's for the ammo-type's, and for upgraded-special ammo.. All change's you can make are at the top of the _blst_custom_ammo.gsc in the main() function.. and you can also add the guns you would like to have the effects there) first set up the scripts.
(if you have the first version, only change the ammo_give() function in _zombiemode_weapons. And the stuff in mapname.gsc, and download the new scripts!) -UPDATE-
In your _zombiemode_spawner.gsc
Right at the top of the file under this line:
add these 2 line's:
Next Search for:
Right below that add this:
Look a few line's down, and you'll see this:
Right under that add this:
Now do the same thing again, but this time search for:
And right under that add:
And again a few line's down, look for this:
Right under that add this:
That's all in _spawner. Save and close. Now in animscripts\death.gsc (in your mod folder! if it's not there, copy it from raw\animscripts\ to your mods\mapname\animscripts\ folder (just create that..)
Right at the top of the first function, under this line:
Add this part:
Save and close.. Now open up your _zombiemode_weapons.gsc and look for the ammo_give() function. replace that entire function with this one, and the new one attached:
Save and close..
Last thing, in your mapname.gsc:
Look for this line:
Right ABOVE that line, add this one:
And UNDER the "_zombiemode::main() line add:
Now when you open up the _blst_custom_ammo.gsc you see the main() function, in there you can change the price for all ammo-type's and add weapons. The weapon line's look like this:
Here you can simply add / remove weapons for each ammo-type.
display_name: the name of the weapon used in the hinst's to the player. Just make that up yourself, whatever you want.. ammo_type: can be "shock" "flame" or "expl" is upgraded: set to true if this is a pap'ed gun, to increase ammo price's. otherwise set to false
Easy as that!
In radiant make the triggers to buy ammo from a trigger_use, with the kvp:
If you find any bugs / problems let me know, otherwise enjoy!! And if used please give credit!
Setting up an alt-weapon:
The easiest thing to do is just copy the weapon-file, and have the exact same gun-model as an alt-weapon.. But you can go all out with this, and make it have attachments a different cammo or even just a completely different gun. Doesn't matter, as long as you set up the weapon file's correctly:
Let's asume we just copy the zombie_thompson weapon file, and rename that zombie_thompson_shock. We want the shock thompson to be the alt-weapon for the normal thompson, the setup:
First open the normal thompson weapon file, and make the changes below:
Now open the zombie_thompson_shock weapon file, and change this:
just make sure the alt-weapon is also loaded in your mod.csv / _zombiemode_weapons / and dlc3_code and this should work fine.
Thanks, thezombiekilla6 for testing it with me and finding some bugs!
Last Edit: June 06, 2014, 07:34:09 pm by BluntStuffy
is it like a drop or is it there throughout the whole game
he shows it in the video. You specify what weapon you want to have the elemental effects on in the script, and when you use that weapon it will use the effects
Also is it possible to have different types of ammo in a gun at one time. Similar to extinction, how if you have shock ammo you use that first then when that runs out it goes back to normal ammo and you can refill the shock ammo by a max ammo. Or is it not possible in waw?
Last Edit: June 02, 2014, 03:57:17 am by thezombiekilla6
is it like a drop or is it there throughout the whole game
No right now you put the name's of the guns you want to have the effects in the script, and they have it the entire game. I allready thought of also making a version as a powerup-drop, wich then give's random special-ammo to the players for 30 seconds..
Quote
Also is it possible to have different types of ammo in a gun at one time. Similar to extinction, how if you have shock ammo you use that first then when that runs out it goes back to normal ammo and you can refill the shock ammo by a max ammo. Or is it not possible in waw?
You can do something kind off like that, by making it alt-weapons like the grenade-launcher is. You will probably need to change some stuff in _zombiemode_weapons if you want to be able to buy ammo off the wall for the alt-weapons.. If you're interested in making this happen, i can help you out. Allready got a simulair setup for my Greenhouse map.
Quote
Just one question is the same injury that would cause the weapon or is increased by the custom ammo type?
No, NaviLlicious is right. I decided not to make it do any extra damage in the script. Just set the damage for the weapon in the weapon file, and that's the damage to gun does.. No increase in the script.. (it has that effect the entire game anyway)
Last Edit: June 02, 2014, 08:39:24 am by BluntStuffy
You can do something kind off like that, by making it alt-weapons like the grenade-launcher is. You will probably need to change some stuff in _zombiemode_weapons if you want to be able to buy ammo off the wall for the alt-weapons.. If you're interested in making this happen, i can help you out. Allready got a simulair setup for my Greenhouse map.
Ya if you could show me a sample script on how i would go about that, that would be great.
Last Edit: June 02, 2014, 11:01:02 am by thezombiekilla6
Can I make custom perk, that applies, for example, shock ammo to every bullet gun? Would it be too much pain to script?
Easiest way to do that i think is just add a check to the function's in the _custom_ammo script that checks if the player has the perk. If it doesn't have the perk, make it return false. Then you wouldn't have to make any other changes to the script or the way it works..
Ya if you could show me a sample script on how i would go about that, that would be great.
First post updated with a little script change for buying alt-weapon ammo. It's been a while since i did it for greenhouse and i actually have seperate triggers in my map for buying alt-ammo. But i did some quick testing with this and it seems to work fine
Just tested it and it works but whenever im not using the shock ammo it still drains the ammo of it and the normal ammo at the same time. Which makes it pretty pointless to have both ammos. Also how can i make the elemental ammo cost a different price than the normal ammo?
Easiest way to do that i think is just add a check to the function's in the _custom_ammo script that checks if the player has the perk. If it doesn't have the perk, make it return false. Then you wouldn't have to make any other changes to the script or the way it works..
Just tested it and it works but whenever im not using the shock ammo it still drains the ammo of it and the normal ammo at the same time. Which makes it pretty pointless to have both ammos. Also how can i make the elemental ammo cost a different price than the normal ammo?
You probably forgot to change a ammoname and or clipname? If they are the same the weapons use the same ammo-stock. For changing the price it would require some more scripting. This setup isn't ideal for that since it give's ammo to both weapons at once (primary and alt)
You probably forgot to change a ammoname and or clipname? If they are the same the weapons use the same ammo-stock. For changing the price it would require some more scripting. This setup isn't ideal for that since it give's ammo to both weapons at once (primary and alt)
Ah that was it i forgot to change the ammoname and clipname. Also you know a good place to start to script the different prices?