| closedIs it possible to increase... |
| Started by =|[76AD]|= TatsuSaisei on 08-08-2006, 04:19 PM |
Threads: 54
Joined: May 2005
is it possible to increase the number of nades a player may hold max.n nI am finishing up a plugin that gives more nades to the "grenadier" classes in the game, but Axis max out at 5 while the Allies max out at 3.... I do not mind the 5 grenade max for Axis, but I would like the Allies to have the same opportunity to hold as many...n nso can this "limit" be worked around in a code ?
Threads: 103
Joined: May 2005
well how are you doing it?nthru give_item weapon_handgrenade etc etc..?nncuase im pretty sure if you did it like:n
dod_set_user_ammo(id,DODW_HANDGRENADE,5)nthat it would work...
Threads: 17
Joined: Jan 2005
The limit is 999 (or 99? cant remember off hand). Basically thats what I set it to in the unlimited nade plugin. However the hud only shows 2 until you throw the 2 you spawn with, then the correct amount show.
Threads: 103
Joined: May 2005
i think the limits 999.. but you only need to throw one grenade, not all defualt nades, to refresh the count number
Threads: 57
Joined: Oct 2005
You have to set the backpack ammo with ammox to make it show more than 2. I'm not sure what kind of ammo grenades take (what number they are) but you'd use the following code:rnrn
public set_ammo(id, weapon, channel, ammo)rn{rn dod_set_user_ammo(id, weapon, ammo)rn // Update user's HUDrn message_begin(MSG_ONE,get_user_msgid("AmmoX"),{0,0,0},id);rn write_byte(channel);rn write_byte(ammo);rn message_end();rn}rnrnWhere channel is a number. For example, garand 30cal ammo is 3, Rockets are 13, Carbine ammo is 2, mp40 is 1. I just don't know the number for grenades and my msglogger isn't working.Threads: 17
Joined: Jan 2005
Thats sweet! Good stuff!
Threads: 54
Joined: May 2005
you all rock... is all I have to say...

