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?
Explosion in ZE with push effect?
Moderator: Moderators
-
theITfactor
- Chief Warrant Officer

- Posts: 327
- Joined: Wed Jun 28, 2006 12:56 pm
- Projects :: The Pwnfest and Games Complex
- xbox live or psn: You and I Know
- Location: The Old Republic
- Contact:
- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
Re: Explosion in ZE with push effect?
Yes. Just assign the explosion ODF like so
Now I got these lines from com_weap_veh_fly_guided_rocket_exp
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.
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).ExplosionName = "all_bldg_moncal_roundturret_exp"
DestroyedGeometryName = "all_bldg_moncal_roundturret_chunk1"
Now I got these lines from com_weap_veh_fly_guided_rocket_exp
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.[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"
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

- Posts: 327
- Joined: Wed Jun 28, 2006 12:56 pm
- Projects :: The Pwnfest and Games Complex
- xbox live or psn: You and I Know
- Location: The Old Republic
- Contact:
Re: Explosion in ZE with push effect?
Push effect didn't work, and I didn't take damage from the explosion :S
