aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers
diff options
context:
space:
mode:
authorBarichello <artur@barichello.me>2022-01-20 10:45:58 -0300
committerBarichello <artur@barichello.me>2022-01-20 10:46:15 -0300
commit20458aa7e5a712b22b6a5a63187d75e1bc4b43f2 (patch)
treee9a20f3e386aa6936a547d275c2eb6af12654edf /Northstar.CustomServers
parent64604b50bc1d940176dc1efe518a6904a4f5e276 (diff)
downloadNorthstarMods-20458aa7e5a712b22b6a5a63187d75e1bc4b43f2.tar.gz
NorthstarMods-20458aa7e5a712b22b6a5a63187d75e1bc4b43f2.zip
Add debug titan spawn function
Diffstat (limited to 'Northstar.CustomServers')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/titan/_replacement_titans_drop.gnut18
1 files changed, 14 insertions, 4 deletions
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 5970f7ea..743fc8ea 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,8 @@
global function ReplacementTitansDrop_Init
global function GetTitanReplacementPoint
global function HullTraceDropPoint
-global function DebugTitanSpawn
+global function DebugSpawnTitan
+global function DebugTitanfall
global function TitanFindDropNodes
global function TitanHulldropSpawnpoint
@@ -41,12 +42,21 @@ void function AddDroppoint( entity ent )
AddToScriptManagedEntArray( file.replacementSpawnpointsID, ent )
}
-void function DebugTitanSpawn()
+void function DebugSpawnTitan()
{
- thread DebugTitanSpawnThread()
+ 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()
}
-void function DebugTitanSpawnThread()
+void function DebugTitanfallThread()
{
entity player = GetPlayerArray()[0]