Lose control on energy run out
Moderator: Moderators
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Lose control on energy run out
Hello.
I was wondering if there was a way to lose all forms of control (in a starfighter) when your energy runs out. I have set up the odf so that your energy slowly drains, but I was wondering if there was a way to make it do something when you run out - in this case, lose player control. Is this possible?
Thanks in advance.
I was wondering if there was a way to lose all forms of control (in a starfighter) when your energy runs out. I have set up the odf so that your energy slowly drains, but I was wondering if there was a way to make it do something when you run out - in this case, lose player control. Is this possible?
Thanks in advance.
-
woner11
- Sith

- Posts: 1361
- Joined: Tue Sep 18, 2007 10:17 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: The lost world of pickels
- Contact:
Re: Loose control on energy run out
What does lose character control mean? You blow up? There is no way that I know of to lose character control for anything. I guess what you could do is write some script (I don't know too much about these) so ifenergy=0,then whatever the script is for the low control on the fakeconsole.
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Loose control on energy run out
When I say loose player control, I mean that the player has little or no control over the starfighter, so...I guess a bit like reducing the mouse sensitivity. But your idea sounds good...
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Loose control on energy run out
Yeah, the problem is when you use SetProperty it would do that for every ship with the same odf, not just a particular players. There is an odf call that will make a ship spiral out of control for a few seconds just before it explodes (at least there was in SWBF1). Don't remember what it is off hand.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Loose control on energy run out
The FakeConsole messes with the ODF property ControlSpeed. This works on the unit class level, so it won't work for you.
You could try giving the ship almost no normal speed, but a good sprint speed and expect everyone to be sprinting around. You can't sprint with no energy.
You could try giving the ship almost no normal speed, but a good sprint speed and expect everyone to be sprinting around. You can't sprint with no energy.
- bobfinkl
- Rebel Colonel

- Posts: 593
- Joined: Sun Jul 13, 2008 9:01 am
- Projects :: Lots of unreleased stuff
- xbox live or psn: No gamertag set
- Location: The quaint little city gametoast.
Re: Loose control on energy run out
Since I know exactly what Theultimat means that wouldn't work for what he wants. He wants to simulate what happens in a real airplane when you run out of fuel, you fall down to the ground.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Loose control on energy run out
Oh, ok. Remember, there is no down in space.
-
woner11
- Sith

- Posts: 1361
- Joined: Tue Sep 18, 2007 10:17 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: The lost world of pickels
- Contact:
Re: Loose control on energy run out
you could always create some kind of animation, or use the one right before you explode. And because AI, at least from my experience, don't sprint, you wouldn't have to worry about it happening to the other ships.
- bobfinkl
- Rebel Colonel

- Posts: 593
- Joined: Sun Jul 13, 2008 9:01 am
- Projects :: Lots of unreleased stuff
- xbox live or psn: No gamertag set
- Location: The quaint little city gametoast.
Re: Loose control on energy run out
I know, but there is over the Pacific[RDH]Zerted wrote:Oh, ok. Remember, there is no down in space.
-
woner11
- Sith

- Posts: 1361
- Joined: Tue Sep 18, 2007 10:17 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: The lost world of pickels
- Contact:
Re: Lose control on energy run out
Is it a recoverable fall, or not?
Basically, do you die from it?
Basically, do you die from it?
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Lose control on energy run out
Ya, bobfinkl has the idea...
@woner11: You don't die from it, you just loose a lot of control. Your controls would be a lot slower to react, and your aircraft will be less maneuverable on general, and all the time, you will slowly loose height...
@woner11: You don't die from it, you just loose a lot of control. Your controls would be a lot slower to react, and your aircraft will be less maneuverable on general, and all the time, you will slowly loose height...
-
MetalcoreRancor
- Brigadier General

- Posts: 628
- Joined: Thu Jun 07, 2007 11:13 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Lose control on energy run out
ScriptCB_SetControlScale
ScriptCB_GetControlScale
ScriptCB_SetMouseTurnAssist
ScriptCB_GetMouseTurnAssist
ScriptCB_SetYAxisFlip
ScriptCB_GetYAxisFlip
Try those.
ScriptCB_GetControlScale
ScriptCB_SetMouseTurnAssist
ScriptCB_GetMouseTurnAssist
ScriptCB_SetYAxisFlip
ScriptCB_GetYAxisFlip
Try those.
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Lose control on energy run out
Would those go in the ODF or LUA?MetalcoreRancor wrote:ScriptCB_SetControlScale
ScriptCB_GetControlScale
ScriptCB_SetMouseTurnAssist
ScriptCB_GetMouseTurnAssist
ScriptCB_SetYAxisFlip
ScriptCB_GetYAxisFlip
Try those.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Lose control on energy run out
They are script callbacks. Those only go in LUA.theultimat wrote:Would those go in the ODF or LUA?MetalcoreRancor wrote:ScriptCB_SetControlScale
ScriptCB_GetControlScale
ScriptCB_SetMouseTurnAssist
ScriptCB_GetMouseTurnAssist
ScriptCB_SetYAxisFlip
ScriptCB_GetYAxisFlip
Try those.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Lose control on energy run out
Those mess with a player's profile settings. I never tested those exact functions to see if their changes get saved or not, but I'd assume that they are saved. If you change their values, make sure to change them back.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Lose control on energy run out
Personally I really feel like this falls under the If it CAN be done it would take too much time and effort, and may never work right anyways (so it ain't worth it) category, but that's just me.
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Lose control on energy run out
Ah, ok. Well thanks anyway. I guess this can be locked...
