aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts
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
parent20458aa7e5a712b22b6a5a63187d75e1bc4b43f2 (diff)
downloadNorthstarMods-3d80ede8229b94185a3e14b87c48092602505f5a.tar.gz
NorthstarMods-3d80ede8229b94185a3e14b87c48092602505f5a.zip
Rename dev titan spawn function
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()