Page 1 of 1

Push Grenade, How to do?

Posted: Wed May 30, 2012 4:57 am
by Wut
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!

Re: Push Grenade, How to do?

Posted: Wed May 30, 2012 5:18 am
by AQT
1. Set the MaxDamage of the explosion ODF to 0.

2. Add the following line to the explosion ODF under [Properties]:

Code: Select all

PushDeadOnly = 0
Where the 0 means "no." For a complete list of explosion related ODF parameters, see:

Re: Push Grenade, How to do?

Posted: Wed May 30, 2012 5:25 am
by Wut
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

Re: Push Grenade, How to do?

Posted: Wed May 30, 2012 1:26 pm
by Marth8880
You could give the ordnance an explosion. Just put this in your ordnance's ODF:

Code: Select all

ExplosionName = "explosionODFname"
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:

Code: Select all

Push = "0.0"
PushRadius = "0.0"
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.