Explosion in ZE with push effect?

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
theITfactor
Chief Warrant Officer
Chief Warrant Officer
Posts: 327
Joined: Wed Jun 28, 2006 12:56 pm
Projects :: The Pwnfest and Games Complex
Games I'm Playing :: SWTOR
xbox live or psn: You and I Know
Location: The Old Republic
Contact:

Explosion in ZE with push effect?

Post by theITfactor »

I'm looking to create some sort of object that I can place in a map in ZE. When the player destroys this object or destroys another "trigger" object, I want it to make a huge explosion. The catch is it has to have a very large push effect to it, so the player goes flying out very very far.

Or just in general I want to add a Push effect to an object in ZE.

Is it possible?
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Re: Explosion in ZE with push effect?

Post by trainmaster611 »

Yes. Just assign the explosion ODF like so
ExplosionName = "all_bldg_moncal_roundturret_exp"
DestroyedGeometryName = "all_bldg_moncal_roundturret_chunk1"
The first line is the explosion you are going to assign. The second line is the geometry that is left behind when the object is dead (in case you wanted to know that).

Now I got these lines from com_weap_veh_fly_guided_rocket_exp
[ExplosionClass]

ClassLabel = "explosion"

[Properties]

LifeSpan = "0.2"
Effect = "com_sfx_vehicle_exp"

Damage = "500.0"
DamageRadius = "50.0"

ArmorScale = "1.0"
HealthScale = "1.0"
ShieldScale = "1.0"
VehicleScale = "1.0"
PersonScale = "1.0"

Shake = "1.0"
ShakeLength = "1.0"
ShakeRadius = "35.0"
Push = "13.0"
PushRadius = "29.0"
The last two lines are the ones you need to be concerned about. The Push is how far you are pushed by the explosion and the PushRadius is the area around the center of the explosion that units will be affected. So in this case, if you are within 29m of the explosion or less, you will be pushed at a 'power' of 13.

Copy these lines into your assigned explosion ODF and change the values of the push. Mind you, it pushes all units, not just the guy who hit it.

And make sure you put a MaxHealth line in the ODF so it can explode.
theITfactor
Chief Warrant Officer
Chief Warrant Officer
Posts: 327
Joined: Wed Jun 28, 2006 12:56 pm
Projects :: The Pwnfest and Games Complex
Games I'm Playing :: SWTOR
xbox live or psn: You and I Know
Location: The Old Republic
Contact:

Re: Explosion in ZE with push effect?

Post by theITfactor »

Push effect didn't work, and I didn't take damage from the explosion :S
Post Reply