From 838dff86a1868e908c9c6b8d3f5f8255f82dbb7b Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Fri, 28 Jan 2022 03:58:47 +0000 Subject: fix evac ship health --- Northstar.CustomServers/mod/scripts/vscripts/evac/_evac.gnut | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Northstar.CustomServers/mod/scripts/vscripts/evac/_evac.gnut') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/evac/_evac.gnut b/Northstar.CustomServers/mod/scripts/vscripts/evac/_evac.gnut index b861ed9f5..f4b95dc13 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/evac/_evac.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/evac/_evac.gnut @@ -11,6 +11,9 @@ const float EVAC_INITIAL_WAIT = 5.0 const float EVAC_ARRIVAL_TIME = 40.0 const float EVAC_WAIT_TIME = 18.0 +const int EVAC_SHIP_HEALTH = 25000 +const int EVAC_SHIP_SHIELDS = 2000 + // we don't use these because they're busted, just keeping them const array EVAC_EMBARK_ANIMS_1P = [ "ptpov_e3_rescue_side_embark_A", @@ -199,6 +202,10 @@ void function Evac( int evacTeam, float initialWait, float arrivalTime, float wa entity dropship = CreateDropship( evacTeam, evacNode.GetOrigin(), evacNode.GetAngles() ) dropship.SetModel( $"models/vehicle/crow_dropship/crow_dropship_hero.mdl" ) dropship.SetValueForModelKey( $"models/vehicle/crow_dropship/crow_dropship_hero.mdl" ) + dropship.SetMaxHealth( EVAC_SHIP_HEALTH ) + dropship.SetHealth( EVAC_SHIP_HEALTH ) + dropship.SetShieldHealth( EVAC_SHIP_SHIELDS ) + dropship.SetTargetName( "#NPC_EVAC_DROPSHIP" ) DispatchSpawn( dropship ) dropship.SetModel( $"models/vehicle/crow_dropship/crow_dropship_hero.mdl" ) AddEntityCallback_OnKilled( dropship, EvacDropshipKilled ) -- cgit v1.2.3