From 3d80ede8229b94185a3e14b87c48092602505f5a Mon Sep 17 00:00:00 2001 From: Barichello Date: Thu, 20 Jan 2022 10:57:03 -0300 Subject: Rename dev titan spawn function --- .../mod/scripts/vscripts/mp/_titan_transfer.nut | 11 ++++++++++- .../mod/scripts/vscripts/titan/_replacement_titans_drop.gnut | 10 ---------- 2 files changed, 10 insertions(+), 11 deletions(-) (limited to 'Northstar.CustomServers/mod') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut index 0d8a3ec53..ca69b6b6a 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut @@ -1,9 +1,9 @@ untyped global function TitanTransfer_Init - global function PilotBecomesTitan global function TitanBecomesPilot +global function DevSpawnTitan global function CreateAutoTitanForPlayer_ForTitanBecomesPilot global function CreateAutoTitanForPlayer_FromTitanLoadout global function CopyWeapons @@ -261,6 +261,15 @@ function TransferHealth( srcEnt, destEnt ) //destEnt.SetHealthPerSegment( srcEnt.GetHealthPerSegment() ) } +void function DevSpawnTitan() +{ + entity player = GetPlayerArray()[0] + vector spawnpointOrigin = player.GetOrigin() + vector spawnpointAngles = VectorToAngles( FlattenVector( GetPlayerArray()[0].GetViewVector() ) * -1 ) + entity titan = CreateAutoTitanForPlayer_FromTitanLoadout( player, GetTitanLoadoutForPlayer( player ), spawnpointOrigin, spawnpointAngles ) + DispatchSpawn( titan ) +} + entity function CreateAutoTitanForPlayer_FromTitanLoadout( entity player, TitanLoadoutDef loadout, vector origin, vector angles ) { int team = player.GetTeam() diff --git a/Northstar.CustomServers/mod/scripts/vscripts/titan/_replacement_titans_drop.gnut b/Northstar.CustomServers/mod/scripts/vscripts/titan/_replacement_titans_drop.gnut index 743fc8eaf..933e9988f 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/titan/_replacement_titans_drop.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/titan/_replacement_titans_drop.gnut @@ -1,7 +1,6 @@ global function ReplacementTitansDrop_Init global function GetTitanReplacementPoint global function HullTraceDropPoint -global function DebugSpawnTitan global function DebugTitanfall global function TitanFindDropNodes global function TitanHulldropSpawnpoint @@ -42,15 +41,6 @@ void function AddDroppoint( entity ent ) AddToScriptManagedEntArray( file.replacementSpawnpointsID, ent ) } -void function DebugSpawnTitan() -{ - entity player = GetPlayerArray()[0] - vector spawnpointOrigin = player.GetOrigin() - vector spawnpointAngles = VectorToAngles( FlattenVector( GetPlayerArray()[0].GetViewVector() ) * -1 ) - entity titan = CreateAutoTitanForPlayer_FromTitanLoadout( player, GetTitanLoadoutForPlayer( player ), spawnpointOrigin, spawnpointAngles ) - DispatchSpawn( titan ) -} - void function DebugTitanfall() { thread DebugTitanfallThread() -- cgit v1.2.3