aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-19 02:23:57 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-19 02:23:57 +0000
commitdda0f0240c1a19eeb321d362e751b397a63996ec (patch)
treeb2c270fd94d5897639a1a1ad17b3c3e777833325 /Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut
parent917da6226d0aa62717f4ec2abe644589dd8e0e42 (diff)
parent190349255d45ae88f7b6d2ad872a5df15699d97a (diff)
downloadNorthstarMods-dda0f0240c1a19eeb321d362e751b397a63996ec.tar.gz
NorthstarMods-dda0f0240c1a19eeb321d362e751b397a63996ec.zip
Merge branch 'main' of https://github.com/R2Northstar/NorthstarMods
Diffstat (limited to 'Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut')
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut6
1 files changed, 3 insertions, 3 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut b/Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut
index e629e5aea..850855a0f 100644
--- a/Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut
+++ b/Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut
@@ -23,7 +23,7 @@ bool function ClientCommandCallbackToggleNoclip( entity player, array<string> ar
bool function ClientCommandCallbackKill( entity player, array<string> args )
{
- if ( IsAlive( player ) && GetConVarInt( "sv_cheats" ) == 1 )
+ if ( IsAlive( player ) )
player.Die()
return true
@@ -31,8 +31,8 @@ bool function ClientCommandCallbackKill( entity player, array<string> args )
bool function ClientCommandCallbackExplode( entity player, array<string> args )
{
- if ( IsAlive( player ) && GetConVarInt( "sv_cheats" ) == 1 )
+ if ( IsAlive( player ) )
player.Die( null, null, { scriptType = DF_GIB } )
return true
-} \ No newline at end of file
+}