aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/mp
diff options
context:
space:
mode:
authorBarichello <artur@barichello.me>2022-01-20 10:57:03 -0300
committerBarichello <artur@barichello.me>2022-01-20 10:57:03 -0300
commit3d80ede8229b94185a3e14b87c48092602505f5a (patch)
treee209c5aee4ac0f41869024cc4e86d45f394a13dc /Northstar.CustomServers/mod/scripts/vscripts/mp
parent20458aa7e5a712b22b6a5a63187d75e1bc4b43f2 (diff)
downloadNorthstarMods-3d80ede8229b94185a3e14b87c48092602505f5a.tar.gz
NorthstarMods-3d80ede8229b94185a3e14b87c48092602505f5a.zip
Rename dev titan spawn function
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut11
1 files changed, 10 insertions, 1 deletions
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()