diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-04-14 00:37:27 +0100 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-04-19 23:07:48 +0200 |
commit | ffdf44de4aed8e34cdc1d749193271ac80facaf3 (patch) | |
tree | 33047ed462c806f47d036a56b910c70edb27010b /Northstar.Custom/mod/scripts/vscripts | |
parent | 4af93f01e625e465e4756226548fcfb6bba7e5da (diff) | |
download | NorthstarMods-ffdf44de4aed8e34cdc1d749193271ac80facaf3.tar.gz NorthstarMods-ffdf44de4aed8e34cdc1d749193271ac80facaf3.zip |
move devcommands to northstar.customservers (#300)
Diffstat (limited to 'Northstar.Custom/mod/scripts/vscripts')
-rw-r--r-- | Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut b/Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut deleted file mode 100644 index 850855a0..00000000 --- a/Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut +++ /dev/null @@ -1,38 +0,0 @@ -untyped -global function NorthstarDevCommands_Init - -void function NorthstarDevCommands_Init() -{ - AddClientCommandCallback( "noclip", ClientCommandCallbackToggleNoclip ) - AddClientCommandCallback( "kill", ClientCommandCallbackKill ) - AddClientCommandCallback( "explode", ClientCommandCallbackExplode ) -} - -bool function ClientCommandCallbackToggleNoclip( entity player, array<string> args ) -{ - if ( GetConVarInt( "sv_cheats" ) != 1 ) - return true - - if ( player.IsNoclipping() ) - player.SetPhysics( MOVETYPE_WALK ) - else - player.SetPhysics( MOVETYPE_NOCLIP ) - - return true -} - -bool function ClientCommandCallbackKill( entity player, array<string> args ) -{ - if ( IsAlive( player ) ) - player.Die() - - return true -} - -bool function ClientCommandCallbackExplode( entity player, array<string> args ) -{ - if ( IsAlive( player ) ) - player.Die( null, null, { scriptType = DF_GIB } ) - - return true -} |