aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorx3Karma <juliuslimck@gmail.com>2022-01-19 00:59:42 +0800
committerBarichello <artur@barichello.me>2022-01-18 18:59:35 -0300
commit190349255d45ae88f7b6d2ad872a5df15699d97a (patch)
treef9bcb74d7cc14e8232527570d5e0b73c26ae58cf
parent988dbb30b704f8be16365ebc809d232265d64ab2 (diff)
downloadNorthstarMods-190349255d45ae88f7b6d2ad872a5df15699d97a.tar.gz
NorthstarMods-190349255d45ae88f7b6d2ad872a5df15699d97a.zip
Remove sv_cheats condition from kill and explode
Short little edit on mobile. Main reasons is to make it more similar to community interactions in Team Fortress 2 where players killbind themselves for seemingly no reason. (It's funny)
-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 e629e5ae..850855a0 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
+}