aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts
diff options
context:
space:
mode:
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut11
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/titan/_replacement_titans_drop.gnut10
2 files changed, 10 insertions, 11 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()
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 743fc8ea..933e9988 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()