Stunning a Unit

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
bokkenblader56
Private First Class
Posts: 85
Joined: Mon Aug 04, 2008 7:20 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: South Carolina
Contact:

Stunning a Unit

Post 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?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Stunning a Unit

Post 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.
bokkenblader56
Private First Class
Posts: 85
Joined: Mon Aug 04, 2008 7:20 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: South Carolina
Contact:

Re: Stunning a Unit

Post 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?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Stunning a Unit

Post 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.
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Stunning a Unit

Post by Sky_216 »

And it only lasts a second or two anyway... :(
bokkenblader56
Private First Class
Posts: 85
Joined: Mon Aug 04, 2008 7:20 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: South Carolina
Contact:

Re: Stunning a Unit

Post 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."
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Stunning a Unit

Post by [RDH]Zerted »

Doesn't the dark trooper's main weapon stun the unit shortly?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Stunning a Unit

Post by DarthD.U.C.K. »

mastersaitek made a forcestasis some time ago
but luascripting ewas required to use it (the template was released too)
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Stunning a Unit

Post by Maveritchell »

[RDH]Zerted wrote:Doesn't the dark trooper's main weapon stun the unit shortly?
It's just a weak push.
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: Stunning a Unit

Post 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. :?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Stunning a Unit

Post 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.
bokkenblader56
Private First Class
Posts: 85
Joined: Mon Aug 04, 2008 7:20 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: South Carolina
Contact:

Re: Stunning a Unit

Post by bokkenblader56 »

So, basically, a small push and jump deduction are the closest I'm going to get without really going in-depth?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Stunning a Unit

Post 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
MetalcoreRancor
Brigadier General
Brigadier General
Posts: 628
Joined: Thu Jun 07, 2007 11:13 am
Projects :: No Mod project currently.
Games I'm Playing :: swbf origin
xbox live or psn: No gamertag set

Re: Stunning a Unit

Post 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.
Post Reply