Wolf Planet Forum Index Wolf Planet
We want you here!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[HELP] New Ammunition

 
Post new topic   Reply to topic    Wolf Planet Forum Index -> Coding Alliance
View previous topic :: View next topic  
Author Message
Mega Luigi
Site Admin


Joined: 12 Jan 2005
Posts: 127
Location: Brazil

PostPosted: Tue Jan 25, 2005 10:53 pm    Post subject: [HELP] New Ammunition Reply with quote

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! Crying or Very sad
_________________
Mega Luigi
Site Admin
Forums Admin
Back to top
View user's profile Send private message Send e-mail MSN Messenger
KyleRTCW
Moderator


Joined: 17 Jan 2005
Posts: 36
Location: United States

PostPosted: Wed Jan 26, 2005 2:02 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Mega Luigi
Site Admin


Joined: 12 Jan 2005
Posts: 127
Location: Brazil

PostPosted: Wed Jan 26, 2005 3:05 am    Post subject: Reply with quote

Many thanks Kyle! I fixed my problem! Very Happy You will be in my credits Smile
_________________
Mega Luigi
Site Admin
Forums Admin
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Wolf Planet Forum Index -> Coding Alliance All times are GMT
Page 1 of 1

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001 phpBB Group

Chronicles phpBB2 theme by Jakob Persson (http://www.eddingschronicles.com). Stone textures by Patty Herford.