aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut
diff options
context:
space:
mode:
Diffstat (limited to 'Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut')
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut9
1 files changed, 9 insertions, 0 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut b/Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut
index 960e619e6..ac08c7b55 100644
--- a/Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut
+++ b/Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut
@@ -6,6 +6,7 @@ void function NorthstarDevCommands_Init()
AddClientCommandCallback( "noclip", ClientCommandCallbackToggleNoclip )
AddClientCommandCallback( "script", ClientCommandCallbackEvalScript )
AddClientCommandCallback( "kill", ClientCommandCallbackKill )
+ AddClientCommandCallback( "explode", ClientCommandCallbackExplode )
}
bool function ClientCommandCallbackToggleNoclip( entity player, array<string> args )
@@ -51,4 +52,12 @@ bool function ClientCommandCallbackKill( entity player, array<string> args )
player.Die()
return true
+}
+
+bool function ClientCommandCallbackExplode( entity player, array<string> args )
+{
+ if ( IsAlive( player ) && GetConVarInt( "sv_cheats" ) == 1 )
+ player.Die( null, null, { scriptType = DF_GIB } )
+
+ return true
} \ No newline at end of file