Page 1 of 1
Remove Roll and Add Explosion [Solved]
Posted: Fri Jul 09, 2010 3:22 pm
by Fiodis
I made a unit with no movement capabilities. I don't want him to move, ever. It all works until I throw a grenade near him. Then he rolls away. How can I prevent that?
Also, I want him to explode on death. I gave him an explosion odf and the line ChunkFrequency = 1.0 to make him explode all the time, taking the example from stock droid odfs. In-game he never explodes. Why not?
Here's his odf:
And his explosion odf:
Re: Remove Roll and Add Explosion
Posted: Fri Jul 09, 2010 4:08 pm
by CressAlbane
Could you just make a prop?
Re: Remove Roll and Add Explosion
Posted: Fri Jul 09, 2010 4:43 pm
by Fiodis
No, I could not.
Re: Remove Roll and Add Explosion
Posted: Fri Jul 09, 2010 7:12 pm
by DarthD.U.C.K.
about the explosion: the unit doesnt explode because you didnt specify chunksin the units odf
about the moving: i think thats hardcoded behavior, did you try to override the rollanimation with a standstillanim ?
Re: Remove Roll and Add Explosion
Posted: Fri Jul 09, 2010 8:02 pm
by Fiodis
I did not, good idea. It'll still move, though. Oh well, I'll just hope no grenades come close. Or I'll get rid of grenades altogether.
What about the explosion? That, actually, is more important.
Re: Remove Roll and Add Explosion
Posted: Fri Jul 09, 2010 8:14 pm
by DarthD.U.C.K.
DarthD.U.C.K. wrote:about the explosion: the unit doesnt explode because you didnt specify chunksin the units odf

Re: Remove Roll and Add Explosion
Posted: Fri Jul 09, 2010 8:27 pm
by Teancum
Make roll cost more energy than the character has, that way they can't use it.
Re: Remove Roll and Add Explosion
Posted: Fri Jul 09, 2010 9:13 pm
by Fiodis
Teancum wrote:Make roll cost more energy than the character has, that way they can't use it.
EDIT - I gave the unit an energy of 1, but they still rolled. Also, I put in a chunk reference and now they aren't affected by Force Push/Pull, or any push at all.
Re: Remove Roll and Add Explosion
Posted: Sat Jul 10, 2010 1:39 am
by Darth_Squoobus
Fiodis wrote:Teancum wrote:Make roll cost more energy than the character has, that way they can't use it.
EDIT - I gave the unit an energy of 1, but they still rolled. Also, I put in a chunk reference and now they aren't affected by Force Push/Pull, or any push at all.
What purpose is this unit suppoed to serve?
Re: Remove Roll and Add Explosion
Posted: Sat Jul 10, 2010 4:36 am
by DarthD.U.C.K.
Fiodis wrote:Teancum wrote:Make roll cost more energy than the character has, that way they can't use it.
EDIT - I gave the unit an energy of 1, but they still rolled. Also, I put in a chunk reference and now they aren't affected by Force Push/Pull, or any push at all.
thats really weird 0.o but you can push droids around in the game..
maybe you have to lower the frequency a bit
Re: Remove Roll and Add Explosion
Posted: Sat Jul 10, 2010 5:50 am
by Sky_216
DarthD.U.C.K. wrote:Fiodis wrote:Teancum wrote:Make roll cost more energy than the character has, that way they can't use it.
EDIT - I gave the unit an energy of 1, but they still rolled. Also, I put in a chunk reference and now they aren't affected by Force Push/Pull, or any push at all.
thats really weird 0.o but you can push droids around in the game..
maybe you have to lower the frequency a bit
But push inexplicably fails on them sometimes...always assumed it was some weirdness with their skeletons.
But just did an experiment and turns out chunkfrequency controls how often units get pushed. At 0.1 the droids get pushed most of the time, at 0.9 they hardly ever get pushed. Weird.
Big thanks for posting this chaps - because of this the rotten droids being immune to fp dilemna looks solved. This will help with Last Days heaps, thanks again.

Re: Remove Roll and Add Explosion
Posted: Sat Jul 10, 2010 10:26 am
by Fiodis
Well, that's not so good for me, then....
Ah well, there might be a workaround. What about the rolling problem?
Re: Remove Roll and Add Explosion
Posted: Sat Jul 10, 2010 10:40 am
by AQT
I'm not really sure but try setting all three values of the ControlSpeed for roll to 0.00s as well as the RollSpeedFactor?
Re: Remove Roll and Add Explosion
Posted: Sun Jul 11, 2010 8:09 am
by MetalcoreRancor
I came up with a solution in my sleep, and woke myself up to tell you this Fiodis. Hope you appreciate it.
You can in theory, make a .combo file for the unit at hand, and create a dummy state for RollRight and RollLeft inputs and give transitions with those commands from Idle. Essentially you'd be removing the characters ability to roll properly, if you do it right. Just make sure they cant move in the State for its duration and it returns them to idle.
Re: Remove Roll and Add Explosion
Posted: Sun Jul 11, 2010 6:21 pm
by Sky_216
Actually here's one that might work - units created with CreateEntity (or something like that, uses a matrix) don't react to anything (no AI?), but still have the same physics as units (can be pushed/pulled, can be moved by walking into them).
Re: Remove Roll and Add Explosion
Posted: Mon Jul 12, 2010 8:38 pm
by Fiodis
Thanks Sky, that works perfectly.