aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-14 02:20:10 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-14 02:20:10 +0000
commit1b6e5af70bf442c684b891003e516329b190c130 (patch)
treeb8df2155f13ac612bfa45bfadf783b3789f117cb /Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut
parent4eaace462efe15328fcc171f2c7f85ff29a9e821 (diff)
downloadNorthstarMods-1b6e5af70bf442c684b891003e516329b190c130.tar.gz
NorthstarMods-1b6e5af70bf442c684b891003e516329b190c130.zip
various fixes
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