| View previous topic :: View next topic |
| Author |
Message |
Mega Luigi Site Admin

Joined: 12 Jan 2005 Posts: 127 Location: Brazil
|
Posted: Tue Jan 25, 2005 10:53 pm Post subject: [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!  _________________ Mega Luigi
Site Admin
Forums Admin |
|
| Back to top |
|
 |
KyleRTCW Moderator

Joined: 17 Jan 2005 Posts: 36 Location: United States
|
Posted: Wed Jan 26, 2005 2:02 am Post subject: |
|
|
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?
| Code: |
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? _________________ ~Kyle Albert
Check out my TC: Click Here and Forum: Click Here |
|
| Back to top |
|
 |
Mega Luigi Site Admin

Joined: 12 Jan 2005 Posts: 127 Location: Brazil
|
Posted: Wed Jan 26, 2005 3:05 am Post subject: |
|
|
Many thanks Kyle! I fixed my problem! You will be in my credits  _________________ Mega Luigi
Site Admin
Forums Admin |
|
| Back to top |
|
 |
|