Page 1 of 2

Removing pilots on death instantly from the world?

Posted: Mon Feb 28, 2011 5:19 pm
by TheJamsh
Is it possible to enable the game to instantly remove pilots from the world when they die, rather than remain in the world in the 'dead' state while the animation plays and then playing the explosion?

The reason I ask is because I would like my pilots to explode much like vehicles (minus the crashing mesh of course), and would rather they just die instantly. I have created quite a few detail gibs etc, so it would be nice!

If the game code doesn't allow it, I wonder if a modified version of N1's Replace On Death would allow it. I'm working on cooking up a demo of Serenesis IM (Infantry Matches), and incoporating some of the things youve seen so far. I've got a monumental stockpile of models to finish up!

Re: Removing pilots on death instantly from the world?

Posted: Mon Feb 28, 2011 5:25 pm
by Nielk1
Just a complete guess but does it depend at all on the existence and length of a death animation?

Re: Removing pilots on death instantly from the world?

Posted: Mon Feb 28, 2011 6:44 pm
by TheJamsh
Well, i removed the death animation and re-built the pilots mesh without one, but when killed he just sits there in limbo without any animation playing and is finally removed.

Ill try changing the number of frames to 1 and seeing if that works, thats near-enough instant for me i think

EDIT: Nope, doesn't work. There must be some sort of hard-coded timer. Thats a bummer. Does replace-on-death work as soon as an object is flagged as 'dead/dying' or only when its removed from the world?

Re: Removing pilots on death instantly from the world?

Posted: Mon Feb 28, 2011 7:46 pm
by Nielk1
Test it?

Re: Removing pilots on death instantly from the world?

Posted: Mon Feb 28, 2011 7:47 pm
by TheJamsh
was hoping you could answer :P

Actually, what would be handy is a blank mission .dll that does nothing other than loop those handy pieces of code you've written (attacher, replace on death, spawn around, aIUnit etc)

Re: Removing pilots on death instantly from the world?

Posted: Mon Feb 28, 2011 9:27 pm
by TheJamsh
Dammit, turns out it doesn't work for pilots at all...

Would it be feasible to compile a .dll that would replace a pilot when its health reaches 0 or a value below it? Bonus points for allowing the replaceWith object to change depending on what ordnance/weapon shot it... e.g.:


[replaceOnDeath]
replaceWith = "PilotExplosionGibs.odf"

ifKilledWith1 = "ordnance.odf" (or weapon.odf)
replaceWith1 = "PilotExplosionLargeWeapon.odf"
ifKilledWith2 = "ordnance2.odf"
replaceWith2 = "PilotExplosionSmallWeapon.odf"

separateReplacementIfSniped = true/false
snipedReplaceWith = "PilotHeadshotAnimation.odf"

would that sort of thing work/be feasible even?

Re: Removing pilots on death instantly from the world?

Posted: Mon Feb 28, 2011 9:42 pm
by Nielk1
Pilots must not follow normal DLL pathways like other objects. Perhaps need to hook the pilot death functions that are TMK used for human players.

Re: Removing pilots on death instantly from the world?

Posted: Tue Mar 01, 2011 12:32 pm
by Killer AK
In Battlezone 1 pilots blow up into chunks, and a little cut scene shows up how they died for everyone to see. They don't just lay down and lamely bleed.

Re: Removing pilots on death instantly from the world?

Posted: Wed Mar 02, 2011 5:36 am
by bigbadbogie
Killer AK wrote:They don't just lay down and lamely bleed.
They do in TRO.

Re: Removing pilots on death instantly from the world?

Posted: Wed Mar 02, 2011 6:23 am
by VSMIT
If you snipe them in BZ1, they do.

Re: Removing pilots on death instantly from the world?

Posted: Thu Mar 03, 2011 1:51 pm
by TheJamsh
Yeah, thats what I'd like to resolve. Same for Soldier Deathmatch, Unfortunately pilots don't see to be able to display damageEffects either.

Re: Removing pilots on death instantly from the world?

Posted: Thu Mar 03, 2011 3:13 pm
by GSH
Code has a 3 second delay on death for animations. Not adjustable, so far.

-- GSH

Re: Removing pilots on death instantly from the world?

Posted: Thu Mar 03, 2011 3:25 pm
by TheJamsh
Would it be reasonable to request that said delay is exposed to ODF? I'd like to get pilots 'explosions' as diverse as vehicle ones but within reason of course, although damage_effects would be handy too

Re: Removing pilots on death instantly from the world?

Posted: Thu Mar 03, 2011 3:43 pm
by GSH
TJ - you know where to request bugs/features.

-- GSH

Re: Removing pilots on death instantly from the world?

Posted: Thu Mar 03, 2011 4:12 pm
by TheJamsh
Filed a report on bugzilla, strange getting used to that program...