From 190349255d45ae88f7b6d2ad872a5df15699d97a Mon Sep 17 00:00:00 2001 From: x3Karma Date: Wed, 19 Jan 2022 00:59:42 +0800 Subject: 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) --- Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut | 6 +++--- 1 file 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 ar bool function ClientCommandCallbackKill( entity player, array 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 args ) bool function ClientCommandCallbackExplode( entity player, array 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 +} -- cgit v1.2.3