From 868e729d68b5913716bfe5ddb512f4099851e9a2 Mon Sep 17 00:00:00 2001 From: Apickx Date: Mon, 28 Dec 2015 19:18:30 -0500 Subject: Initial commit --- gamemode/init.lua | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 gamemode/init.lua (limited to 'gamemode/init.lua') 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 + + + + + + -- cgit v1.2.3-70-g09d2