1
Add-Ons / Re: Fully Automatic Glock 18 (G18 form Modern Warfare 2)
« on: November 14, 2010, 04:06:14 AM »
Daaa Hello bump :)
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
You should use spaceguy's ammo mod
The ar-15 is the civ version of the m16 I think.
I don't know if it is already done this way, but has anyone considered defining a few generic ammo functions and then simply using those? .hasAmmo(%type) .useAmmo(%type) .addAmmo(%type) .depleteAmmo(%type), each with an optional number, defaulting to 1 if ommited, and returning the ammount of ammo actually used/added/removed?
Then, adding the condition of "must have ammo to fire" without a clip system, would be, in pseudocode,
ammoitem::onpickup
%player.addAmmo(%type, %contents)
gunimage::onfire
if(%player.useAmmo("gunshells"))
parent::onfire
else
tellPlayer("Not enough ammo")
I am jealous, because you know how to script.
Any scripters are going to have to know as much information about how you want this gun to be like as possible, such as bullet speed, delay between each round, max ammo, etc.
EDIT: Crap Mediafire's down
I can script it for you.
The script I made for clip-based reloading (infinite reserve ammo) probably has the best example with Bushido's Tier+Tactical pack.