I want to know how to write the odf for the grenade, which just only push away the persons who are next to it.Like this:
- I throw the grenade
- it explode
- the presons next to it fly (push) away
- the persons get up
Please write the odf here, thank you!
Push Grenade, How to do?
Moderator: Moderators
-
Wut
- Posts: 4
- Joined: Wed May 30, 2012 4:44 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Push Grenade, How to do?
1. Set the MaxDamage of the explosion ODF to 0.
2. Add the following line to the explosion ODF under [Properties]:
Where the 0 means "no." For a complete list of explosion related ODF parameters, see:
2. Add the following line to the explosion ODF under [Properties]:
Code: Select all
PushDeadOnly = 0-
Wut
- Posts: 4
- Joined: Wed May 30, 2012 4:44 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Push Grenade, How to do?
Nice THANK U .... i have another question : How can i do, that if i hit u with the sonic blaster, that you will be push away too.
- i hit u with sonic blaster
- sonic effect
- and u get 100 damage and fly (push) away
Can u please help me again :DD
- i hit u with sonic blaster
- sonic effect
- and u get 100 damage and fly (push) away
Can u please help me again :DD
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Push Grenade, How to do?
You could give the ordnance an explosion. Just put this in your ordnance's ODF:
Though I'm not sure if the-- actually, now, looking at the sonic blaster ODFs, all you have to do is edit the already-existing explosion's push values:
And if you want it to push units that aren't dead, you'd put the line for PushDeadOnly = 0 in the ODF as well.
Code: Select all
ExplosionName = "explosionODFname"Code: Select all
Push = "0.0"
PushRadius = "0.0"