summaryrefslogtreecommitdiff
path: root/gamemode/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/init.lua')
-rw-r--r--gamemode/init.lua47
1 files changed, 47 insertions, 0 deletions
diff --git a/gamemode/init.lua b/gamemode/init.lua
new file mode 100644
index 0000000..1e2e506
--- /dev/null
+++ b/gamemode/init.lua
@@ -0,0 +1,47 @@
+
+AddCSLuaFile( "autolua.lua" )
+AddCSLuaFile( "cl_init.lua" )
+AddCSLuaFile( "shared.lua" )
+
+include( "shared.lua" )
+
+function GM:Initialize()
+end
+
+function GM:PlayerInitialSpawn(pl)
+end
+
+function GM:Think()
+end
+
+function GM:PlayerCanHearPlayersVoice()
+ return true, true
+end
+
+function GM:CheckPassword(Mystery,IP,ServerPassword,Name)
+ --This new hook returns AllowJoin,BlockMessage
+end
+
+
+function GM:PlayerSpawn(pl)
+ hook.Call( "PlayerSetModel" , self , pl )
+ self:PlayerLoadout(pl)
+end
+
+function GM:PlayerLoadout( ply )
+ ply:Give("weapon_physcannon")
+ ply:Give("weapon_physgun")
+ ply:SelectWeapon("weapon_physgun")
+
+ for k,v in pairs(ply:GetWeapons()) do
+ v:DrawShadow(false)
+ end
+
+ return true
+end
+
+
+
+
+
+