diff options
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut | 11 |
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 0d8a3ec5..ca69b6b6 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() |