Which file dictates how a unit acts in the three stances available? I'd like to make it so that in "hold ground" stance, units will not move but will still fire at enemies. I'm not sure how the stance thing even works, though. It's almost like in hold ground, units simply do not auto acquire enemies...which makes them not move unless ordered to. Is there a way to make it so that a unit recieves a locomotor change when you switch stances? That way, you could have a locomotor with 0 speed and 0 turn speed or something. The units wouldn't move then, but would still be able to fire at enemies in front of them. Anybody know a way?
Editing Stances
Started by The Desert Fox, Aug 09 2006 02:44 AM
2 replies to this topic
#1
Posted 09 August 2006 - 02:44 AM
#2
Posted 09 August 2006 - 05:34 AM
As far as I understand it, stances work because of the attributemodifiers they get. For example hold ground stance has a -90% Vision bonus. So the unit can´t see anything anymore except what´s directly next to it, which leads to it ignoring everything.
You might get the effect you desire by giving the units a SPEED=1% or SPEED=0% modifier in hold ground stance and remove the vision modifier. This should make the unit unable to move in hold ground stance, but still able to shoot.
Although in stances.ini there is this line in most modifiers: MeleeBehavior = Amoeba . I have no idea what it does.
edit: just tested it, and it kinda works, but turn speed isn´t affected and units don´t stop anymore when they are already moving while you give them the hold ground stance command. That makes them walk on the spot forever.
Targetting works though, so it´s only affected by that vision bonus modifier.
You might get the effect you desire by giving the units a SPEED=1% or SPEED=0% modifier in hold ground stance and remove the vision modifier. This should make the unit unable to move in hold ground stance, but still able to shoot.
Although in stances.ini there is this line in most modifiers: MeleeBehavior = Amoeba . I have no idea what it does.
edit: just tested it, and it kinda works, but turn speed isn´t affected and units don´t stop anymore when they are already moving while you give them the hold ground stance command. That makes them walk on the spot forever.
Targetting works though, so it´s only affected by that vision bonus modifier.
Edited by gansnudel, 09 August 2006 - 06:08 AM.
#3
Posted 09 August 2006 - 11:48 AM
you could solve that by adding 'CommandTrigger = Command_Stop' or something in the button that switches to hold ground stance
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users