Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Starman01 on June 25, 2006, 05:49:52 am
-
Hello,
just a short question. Is it possible to lock the afterburner on the players ship, and give it free a few minutes later (maybe by changing the key or removing the fuel or something like that ? ). I'm using a 3.6.7 build, so I hope there is already a way of doing that.
-
I don't think it's possible at the moment. It might be possible to add one just like the lock primary and secondary weapon SEXPs though.
-
That's too bad :( If the player will afterburn at this stage, it might brake the mission/story flow.
Anyway, thanks :)
-
Does the mission allow AB at any point? If not, you could edit the tbl files to add an exact duplicate of the fighters (with a hidden name...... I think # can do it) that don't have AB.
-
Might be possible with a little roundabout hacking.
1) Get yourself an extra ship class that's identical to what the player will be flying, but without afterburner capability.
2) Use change-ship-class to switch it in when you want to prevent afterburners.
3) And switch it back again when you want to allow them.
I have no clue if this would actually work, but in theory... it might :p
-
That would work fine. I should have remembered that not only is it possible but that I've actually done it before in a test mission :rolleyes:
I'm still interested in adding a SEXP to do it though.
-
Does the mission allow AB at any point? If not, you could edit the tbl files to add an exact duplicate of the fighters (with a hidden name...... I think # can do it) that don't have AB.
Yes, I just want to block it because at this time in the mission is a very long dialogue, and it will only work correctly when the players flies to the distant point with full speed, but without AB. Otherwise it could happen that the fight starts, and the "attack target" order comes much later.
Might be possible with a little roundabout hacking.
1) Get yourself an extra ship class that's identical to what the player will be flying, but without afterburner capability.
2) Use change-ship-class to switch it in when you want to prevent afterburners.
3) And switch it back again when you want to allow them.
I have no clue if this would actually work, but in theory... it might :p
Nice Idea, I will try that one (if it will work for the player ship, that is). :)
-
Nice to know it would work :) I agree a SEXP would definitely be better though, should be no need to jump through so many hoops for something this simple.
-
Hm, works pretty good :)
Changing to a ship with no afterburner however let the HUD-Gauge disappear (of course), but when you use a setting like that :
$Afterburner: YES
+Aburn Max Vel: 0.0, 0.0, 218.0
+Aburn For accel: 0.7
+Aburn Fuel: 0.01
+Aburn Burn Rate: 1.0
+Aburn Rec Rate: 0.0
you have a full Fuel-Gauge, which isn't dropping at all, and the afterburner can't be activated (and brings the empty-sound) :)
-
Hm, on second thought, not so good :( Changing ship-class resets the weapon loadout, and that to even a wrong amount (10 times more than the table should allow :confused: )
-
No worries. There are set-primary-weapon/ammo and set-secondary-weapon/ammo SEXPs to fix that :)
-
Yes, but not in the old build we are using :D I suppose, I will have to trust the player that he will not afterburn at that time
-
Ah. Just make up some silly excuse like "Uhh... we're getting some strange energy fluctuations from your engine - Best not use afterburners until they subside or there could be... trouble", and then center a huge nuke-like special explosion on him if he doesn't play ball ;)
Sooner or later you really ought to start using newer builds though. Miss out on a lot by sticking with obsolete ones.
-
maybe you make that effect actually do something bad... like if the player hits the afterburner the shields buckle and you lose communications, engines, and weapons... and remove support ships
That should make the player have to replay the mission...
-
Not nessesary, I used the change-ship-class method an created a fighter with no afterburner. At this part of the mission it's possible since you weren't able to use the secondaries before. It works fine that way. Only small problem, if the player has used the afterburner before (and there is actually no need to) he will suddenly have the afterburner refuelled. But this is a minor issue, all big games have such minor inconsistences :)