PDA

View Full Version : Where is the ammo and reload


saykoshey
08-01-2010, 04:37 PM
I'm modding the engine but I have trouble finding where the reload events are and where the ammo data is.

Also is there anyway to know whether the reload bar is in the quickreload region or is this even only triggered on the second reload?

naNuke
08-01-2010, 06:14 PM
I am no coder and I never messed with the engine but I think you can find the weapon data such as what they use ammo in "alien swarm/swarm/scripts" as txt files same kind as soundscapes etc, engine probably loads them to get information about weapons. Also there is definition file in "alien swarm/sdk_src/game/shared/" called "ammodef.cpp" and "ammodef.h"

well but not sure if this will help you at all :)

saykoshey
08-01-2010, 06:48 PM
No I'm looking for the objects which contain the actual data ingame and the object which triggers the events.

Nevermind, found it. It's in c_asw_marine and not in baseplayer.