aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-04-14 00:37:27 +0100
committerGitHub <noreply@github.com>2022-04-14 00:37:27 +0100
commit59df0969a282b72bff574695845e86e198272850 (patch)
tree3985d1800ab695e84ce5e7aa01e06c4224ab6d32 /Northstar.Custom
parent27ed61b9285694d428b592f1cd9b8a1f5c1ea3a3 (diff)
downloadNorthstarMods-59df0969a282b72bff574695845e86e198272850.tar.gz
NorthstarMods-59df0969a282b72bff574695845e86e198272850.zip
move devcommands to northstar.customservers (#300)
Diffstat (limited to 'Northstar.Custom')
-rw-r--r--Northstar.Custom/mod.json15
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/_northstar_devcommands.gnut38
2 files changed, 1 insertions, 52 deletions
diff --git a/Northstar.Custom/mod.json b/Northstar.Custom/mod.json
index 77fc2a62f..c2b29fea3 100644
--- a/Northstar.Custom/mod.json
+++ b/Northstar.Custom/mod.json
@@ -38,13 +38,6 @@
}
},
{
- "Path": "_northstar_devcommands.gnut",
- "RunOn": "SERVER && MP",
- "ServerCallback": {
- "After": "NorthstarDevCommands_Init"
- }
- },
- {
"Path": "weapons/mp_weapon_peacekraber.nut",
"RunOn": "( CLIENT || SERVER ) && MP"
},
@@ -416,13 +409,7 @@
}
}
],
- "Maps": [
- {
- "Name": "mp_skyway_v1",
- "VPK": "englishclient_mp_skyway_v1",
- "RPak": "sp_skyway_v1"
- }
- ],
+
"Localisation": [
"resource/northstar_custom_%language%.txt"
]
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 850855a0f..000000000
--- 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
-}