Page 1 of 1

Ordnance explosion push isn't working, any ideas?

Posted: Sat Aug 23, 2008 3:58 pm
by Taivyx
So I gave my shotgun's ordnance an invisible explosion in order to set a pushback value, so that when you kill someone with the shotgun, they fly backwards :D
Problem is, it's not working, and I have no clues as to why it isn't. :?

The line in my shotgun ordnance code that calls for the invisible explosion

Code: Select all

ExplosionExpire		= "remington_ord_exp"
remington_ord_exp.odf
Hidden/Spoiler:
[code][ExplosionClass]
ClassLabel = "explosion"

[Properties]
Damage = "0.0"
DamageRadiusInner = "4.5"
DamageRadiusOuter = "6.5"

Push = "10.0"
PushRadiusInner = "0.5"
PushRadiusOuter = "0.5"

Shake = "0.0"
ShakeLength = "0.0"
ShakeRadiusInner = "0.0"
ShakeRadiusOuter = "0.0"

Effect = "com_sfx_ord_exp"
WaterEffect = "com_sfx_watersplash_ord"

VehicleScale = "1.0"
PersonScale = "1.0"
DroidScale = "1.0"
BuildingScale = "1.0"
AnimalScale = "1.0"

SoundProperty = ""
//WaterExplosion = "com_weap_obj_med_water_exp"[/code]
Before someone asks, yes I know it's using the explosion, because it played an explosion sound before I took it out in the second-to-last line

EDIT: By the way the reason that the push value is set at the ridiculous number of 10 is because I was worried it wouldn't be noticeable (10 is the value of push for a grenade)

Re: Ordnance explosion push isn't working, any ideas?

Posted: Sat Aug 23, 2008 4:02 pm
by MandeRek
Taivyx wrote:So I gave my shotgun's ordnance an invisible explosion in order to set a pushback value, so that when you kill someone with the shotgun, they fly backwards :D
Problem is, it's not working, I have no clues why it isn't. :?

The line in my shotgun ordnance code that calls for the invisible explosion

Code: Select all

ExplosionExpire		= "remington_ord_exp"
remington_ord_exp.odf
Hidden/Spoiler:
[code][ExplosionClass]
ClassLabel = "explosion"

[Properties]
Damage = "0.0"
DamageRadiusInner = "4.5"
DamageRadiusOuter = "6.5"

Push = "10.0"
PushRadiusInner = "0.5"
PushRadiusOuter = "0.5"

Shake = "0.0"
ShakeLength = "0.0"
ShakeRadiusInner = "0.0"
ShakeRadiusOuter = "0.0"

Effect = "com_sfx_ord_exp"
WaterEffect = "com_sfx_watersplash_ord"

VehicleScale = "1.0"
PersonScale = "1.0"
DroidScale = "1.0"
BuildingScale = "1.0"
AnimalScale = "1.0"

SoundProperty = ""
//WaterExplosion = "com_weap_obj_med_water_exp"[/code]
Before someone asks, yes I know it's using the explosion, because it played an explosion sound before I took it out in the second-to-last line

EDIT: By the way the reason that the push value is set at the ridiculous number of 10 is because I was worried it wouldn't be noticeable (10 is the value of push for a grenade)
Can't you just add a nice push value in the ordnance odf? :?

Re: Ordnance explosion push isn't working, any ideas?

Posted: Sat Aug 23, 2008 4:08 pm
by Taivyx
Just tried that, didn't change a thing, as I suspected, cause push value is a explosion-exclusive value

Re: Ordnance explosion push isn't working, any ideas?

Posted: Sat Aug 23, 2008 4:17 pm
by -_-
Try: ExplosionName = "remington_ord_exp"

Re: Ordnance explosion push isn't working, any ideas?

Posted: Sat Aug 23, 2008 4:26 pm
by Taivyx
Well I already stated that it's using the explosion...... I'll give it a shot though

EDIT: Woah, it works! That was surprising. Thanks, Skyhawk! :D

Re: Ordnance explosion push isn't working, any ideas?

Posted: Sat Aug 23, 2008 5:29 pm
by Maveritchell
For future reference, ExplosionExpire is the explosion that plays when an ordnance dies, not when it hits.

Re: Ordnance explosion push isn't working, any ideas?

Posted: Sat Aug 23, 2008 10:25 pm
by obiboba3po
Taivyx wrote:Well I already stated that it's using the explosion...... I'll give it a shot though

EDIT: Woah, it works! That was surprising. Thanks, Skyhawk! :D
wow thats pretty cool that it works. i never knew that it worked like that. (btw im pretty sure that was face)

Re: Ordnance explosion push isn't working, any ideas?

Posted: Sat Aug 23, 2008 10:31 pm
by -_-
obiboba3po wrote:
Taivyx wrote:Well I already stated that it's using the explosion...... I'll give it a shot though

EDIT: Woah, it works! That was surprising. Thanks, Skyhawk! :D
wow thats pretty cool that it works. i never knew that it worked like that. (btw im pretty sure that was face)
-_-(Face).. aka Skyhawk. :roll:

Re: Ordnance explosion push isn't working, any ideas?

Posted: Sat Aug 23, 2008 10:33 pm
by obiboba3po
oh lol didnt know that...at least i know now thanks for correcting me :)