aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/evac
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-28 03:58:47 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-28 03:58:47 +0000
commit838dff86a1868e908c9c6b8d3f5f8255f82dbb7b (patch)
tree1f5db01d642f5f1bd63384c85232d9d007f5cb67 /Northstar.CustomServers/mod/scripts/vscripts/evac
parentcfc181c032d7df090b2619d932c0ac297b621464 (diff)
downloadNorthstarMods-838dff86a1868e908c9c6b8d3f5f8255f82dbb7b.tar.gz
NorthstarMods-838dff86a1868e908c9c6b8d3f5f8255f82dbb7b.zip
fix evac ship health
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/evac')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/evac/_evac.gnut7
1 files changed, 7 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/evac/_evac.gnut b/Northstar.CustomServers/mod/scripts/vscripts/evac/_evac.gnut
index b861ed9f..f4b95dc1 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<string> 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 )