Home » MODDING HQ 1.13 » v1.13 Idea Incubation Lab  » Helicopter repair and refuel
Helicopter repair and refuel[message #329091] Thu, 19 December 2013 20:20 Go to previous message
anv is currently offline anv

 
Messages:258
Registered:March 2013
Helicopter Repair

Buggler informed me that there exist Waldo Zimmer's lines and NPC script entries suggesting that he was supposed to be able to repair helicopter, but it wasn't handled in code.
Now, if WALDO_CAN_REPAIR_HELICOPTER is TRUE, helicopter is damaged and safely landed in the same sector Waldo is in (usually Drassen airport), you can speak to him directly, and he'll offer to conduct necessary repairs.
Repair takes time - while it's in progress you can't use helicopter. Time depends on amount of damage, but may vary randomly by few hours.
Cost of repair is dependent on damage too, but if WALDO_SUBSEQUENT_REPAIRS_COST_INCREASE is TRUE, it also increases with subsequent repairs - to simulate available parts scarcity and prevent exploiting.

Also, if WALDO_OFFERS_REPAIR_IN_STRATEGIC is TRUE, and you've met him before, Waldo will offer repair himself as soon as damaged heli lands in his sector. If Silent Skyrider option is set in options screen, only message box prompt will be shown (Silent Waldo?).
http://img46.imageshack.us/img46/3117/zuzj.png
More specific settings kept in Helicopter_Settings.INI (costs, time, etc.).

Damaged Skyrider won't fly

Normally, after taking the second hit Skyrider automatically returns to base - but then immediately after touching ground he can fly again like nothing happened. Now, if SERIOUSLY_DAMAGED_SKYRIDER_WONT_FLY is TRUE, he will refuse to fly until you perform repairs.

Alternative Helicopter Fuel System

There exist commented sections in code suggesting that helicopter's range was supposed to be limited.
Now, if ALTERNATIVE_HELICOPTER_FUEL_SYSTEM is TRUE:
- Helicopter can fly up to 25 sectors (by default). It does include way back! Now taking Estoni is important, or you won't reach Meduna and Grumm.
- Every sector helicopter flies through uses up 1 fuel unit.
- Hovering uses up fuel just like flying (you can fly for hours between sectors, but 10 minutes in the same place and you have to come back? I call bullshit, Bullock.). By default hovering for 10 minutes equals fuel needed for flying through 1 sector. Time of hovering is additive, meaning you'll still use 1 fuel unit if you hover for 5 minutes in one sector and for 5 in another.
- Hovering costs money - less than travel though - HELICOPTER_HOVER_COST_ON_GREEN_TILE, HELICOPTER_HOVER_COST_ON_RED_TILE.
- Helicopter refuels automatically when landed at base, for free (let's say price is included in Skyrider bill).
- Refuel isn't instant. Time of refuel scales with amount of fuel used up. If tank is completely empty, you'll need 30 minutes to fully refill. If you're in hurry, you can fly away before it's finished, but you'll have proportionally less fuel (and less range).
http://img706.imageshack.us/img706/2349/mq75.png
Specific values customizable in Helicopter_Settings.INI.

Pay Skyrider in base only

If HELICOPTER_PAY_SKYRIDER_IN_BASE is TRUE, Skyrider will charge you for entire journey only after safe return to base. I mean - he says "I'll be looking to get paid when the trip's over", right?

Skyrider charges for return to base

If HELICOPTER_RETURN_TO_BASE_IS_NOT_FREE is TRUE, automatic return to base costs money too. Normally, if you order Skyrider to return by selecting airport as destination point he charges you, but if he gets seriously hit or out of fuel and returns on his own, he doesn't - so players usually exploit it by ordering him to hover until he runs out. Not anymore.

Passengers getting hit

Helicopter isn't exactly armored transporter, so when it gets hit and HELICOPTER_PASSENGERS_CAN_GET_HIT is TRUE, there's a chance puny meatbags inside get hurt too. By default only few scratches will happen, but it might be enough to require medical attention for passenger and throw player's plans into turmoil.

Message box before kicking people out

Normally when running out of fuel, Skyrider automatically kicks passengers out. If HELICOPTER_ASK_BEFORE_KICKING_PASSENGERS_OUT is TRUE, you'll get message box with option to leave passengers in. It doesn't extend to kicking people out when you owe him money though. (Idea sto... ehrm, borrowed from Night Ops).

Externalised vanilla values

HELICOPTER_TIME_DELAY_FOR_HOVER_WAIT, HELICOPTER_TIME_DELAY_FOR_HOVER_WAIT_TOO_LONG, HELICOPTER_SAM_SITE_ACCURACY -> Helicopter_Settings.INI. Cause why not.

Backwards compatibility

As far as I know.

Credits

Buggler - ideas, balancing, testing, feedback

Download

Files + diff

Report message to a moderator

Master Sergeant

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [WIP]Jagged Alliance 2 Source Documentation
Next Topic: Aliens: A JA2 Mod
Goto Forum:
  


Current Time: Sat Apr 20 00:42:28 GMT+3 2024

Total time taken to generate the page: 0.01014 seconds