Page 1 of 1
Stunning a Unit
Posted: Thu Nov 06, 2008 11:15 pm
by bokkenblader56
Well, just wondering how it's done. I've looked in the documentation, but it's not in there anywhere. I also have done a search. In the ODF documentation, I've tried some of the ClassLabels that looked likely with parameters I found, but they haven't worked. Suggestions?
Re: Stunning a Unit
Posted: Thu Nov 06, 2008 11:19 pm
by Maveritchell
Simply put, it's not done. Anything I or anyone else has done and called a "stun" has probably just been some kind of push or pull. Yes, the ODF Parameters lists a stun parameter for both cannons and areaeffectweapons (I think), but they don't work - and I got confirmation from psych0fred on this one.
Re: Stunning a Unit
Posted: Thu Nov 06, 2008 11:21 pm
by bokkenblader56
Ah, thanks. So, if there were simultaneous pushes and pulls of equal strength, would that simulate a stun? Or would it just be a very minute push/pull?
Re: Stunning a Unit
Posted: Thu Nov 06, 2008 11:32 pm
by Maveritchell
No, it would do both sequentially. What you described is exactly how I did "Force Whirlwind" in any of the KotOR sides - see the Conversion Pack, my Sullust, Ralltiir, or Spira maps.
Re: Stunning a Unit
Posted: Fri Nov 07, 2008 12:16 am
by Sky_216
And it only lasts a second or two anyway...

Re: Stunning a Unit
Posted: Fri Nov 07, 2008 1:08 am
by bokkenblader56
Eh. The idea was for me to have some kind of a long range stunner or debilitator so that while the target was incapacitated, I could switch to my sniper rifle and finish them. I guess I'm just going to have to create a kind of long range "push gun."
Re: Stunning a Unit
Posted: Fri Nov 07, 2008 11:05 am
by [RDH]Zerted
Doesn't the dark trooper's main weapon stun the unit shortly?
Re: Stunning a Unit
Posted: Fri Nov 07, 2008 12:16 pm
by DarthD.U.C.K.
mastersaitek made a forcestasis some time ago
but luascripting ewas required to use it (the template was released too)
Re: Stunning a Unit
Posted: Fri Nov 07, 2008 2:40 pm
by Maveritchell
[RDH]Zerted wrote:Doesn't the dark trooper's main weapon stun the unit shortly?
It's just a weak push.
Re: Stunning a Unit
Posted: Fri Nov 07, 2008 3:19 pm
by Aman/Pinguin
DarthD.U.C.K. wrote:mastersaitek made a forcestasis some time ago
but luascripting ewas required to use it (the template was released too)
Yeah I remembered that one too, it used the PhysicsActive command... I can't find the thread though.

Re: Stunning a Unit
Posted: Fri Nov 07, 2008 3:26 pm
by Maveritchell
Aman/Pinguin wrote:I remembered that one too, it used the PhysicsActive command... I can't find the thread though.

No, it just activated and deactivated the object (removing its properties as a gameobject and making it a simple entity). You can look at the code in the "Released Assets" forum in his thread.
Re: Stunning a Unit
Posted: Fri Nov 07, 2008 3:26 pm
by bokkenblader56
So, basically, a small push and jump deduction are the closest I'm going to get without really going in-depth?
Re: Stunning a Unit
Posted: Fri Nov 07, 2008 3:49 pm
by DarthD.U.C.K.
look into mastersaiteksforcepowers topic in the releasedassetsforum (linked in the assets thread)
and see, if its to "deep"
you basically just have to copy the lies in your lua and the weapons odfn
Re: Stunning a Unit
Posted: Sun Nov 09, 2008 6:36 pm
by MetalcoreRancor
I managed to create a slow moving laser that trips people up with -10 push. The trick is to not have a ClassParent in the ord so you can do that.