Disable grenade

Ask questions, discuss ideas, get answers
Post Reply
anselmus
Posts: 82
Joined: Sun Oct 18, 2009 6:42 pm

Disable grenade

Post by anselmus »

Ok,I do not recall if the subject has been discussed, but is possible only disable the grenade's ammobox (SSM)?

edited by Jeronimo: Addded correct prefix to thread title.
Jeronimo
Posts: 196
Joined: Sun Dec 27, 2009 8:55 pm
Location: Germany
Contact:

Re: Disable grenade (SSM)

Post by Jeronimo »

5 min of search in the ssm.com backup gave me this: viewtopic.php?f=23&t=3094

Code: Select all

ObjectTemplate.Active YourSupplyDepot
ObjectTemplate.addAmmoType 2 0 0 0
Check out objects.rfa for the name of the SupplyDepot and the correct ammoType ID.
Image
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

that works but will cripple the ExpPack to as it use the same ammotype.

another way

Code: Select all

ObjectTemplate.Active GrenadeAllies
ObjectTemplate.AmmoType 8

ObjectTemplate.Active GrenadeAxis
ObjectTemplate.AmmoType 8
anselmus
Posts: 82
Joined: Sun Oct 18, 2009 6:42 pm

Re:

Post by anselmus »

freddy wrote:that works but will cripple the ExpPack to as it use the same ammotype.

another way

Code: Select all

ObjectTemplate.Active GrenadeAllies
ObjectTemplate.AmmoType 8

ObjectTemplate.Active GrenadeAxis
ObjectTemplate.AmmoType 8

Nice, thanks.
tekk
Posts: 171
Joined: Fri Dec 11, 2009 6:12 pm

Re: Disable grenade

Post by tekk »

I recall doing this for berlin some years back but the method was disabling the button that is used to throw the grenades, the animation was there but the explosion was not. Sorry cant remember the code thou but maybe someone might.
Nodbrother- "getting whiped every single game by some over-active 9 year old kid with too much spare time and a reaction time that is a third of yours."
Player
Posts: 28
Joined: Sat Oct 24, 2009 5:06 pm

Re: Disable grenade

Post by Player »

I thought all you had to do was set the Objecttemplate.magtype 1?
Post Reply