View Full Version: [HELP] New Ammunition

wolfers >>Coding Alliance >>[HELP] New Ammunition


<< Prev | Next >>

Mega Luigi- 01-25-2005
[HELP] New Ammunition
I have added a new ammunition into my game and the max of it is 150. The original ammo of the game is in 200. When I enter in the game, I can shoot with my weapons, but the number stay in 150 to all weapons. I don't know how to fix it. Please, help me! :cry:

KyleRTCW- 01-25-2005

Make sure the right ammo is being subtracted. Have you done this? Search for case 1: in WL_AGENT.C Does it look like this? case 1: if (!gamestate.ammo) { // can only happen with chain gun gamestate.attackframe++; break; } GunAttack(ob); switch (gamestate.weapon) { case wp_pistol: case wp_machinegun: case wp_chaingun: gamestate.ammo--; break; case wp_special1: case wp_special2: gamestate.ammo2--; break; } DrawAmmo() break; Does it look something like thay?

Mega Luigi- 01-25-2005

Many thanks Kyle! I fixed my problem! :D You will be in my credits :)

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.