Push Grenade, How to do?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Wut
Posts: 4
Joined: Wed May 30, 2012 4:44 am
Projects :: No Mod project currently.
Games I'm Playing :: StarWarsBattlefront
xbox live or psn: No gamertag set

Push Grenade, How to do?

Post 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!
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Push Grenade, How to do?

Post 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:
Wut
Posts: 4
Joined: Wed May 30, 2012 4:44 am
Projects :: No Mod project currently.
Games I'm Playing :: StarWarsBattlefront
xbox live or psn: No gamertag set

Re: Push Grenade, How to do?

Post 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
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Push Grenade, How to do?

Post 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.
Post Reply