diff options
| author | Apickx <Apickx@cogarr.org> | 2015-12-28 19:18:30 -0500 |
|---|---|---|
| committer | Apickx <Apickx@cogarr.org> | 2015-12-28 19:18:30 -0500 |
| commit | 868e729d68b5913716bfe5ddb512f4099851e9a2 (patch) | |
| tree | 6441108754145dfd68a6e23bea382b5cb1ab63d5 /gamemode/init.lua | |
| download | gearfox-868e729d68b5913716bfe5ddb512f4099851e9a2.tar.gz gearfox-868e729d68b5913716bfe5ddb512f4099851e9a2.tar.bz2 gearfox-868e729d68b5913716bfe5ddb512f4099851e9a2.zip | |
Diffstat (limited to 'gamemode/init.lua')
| -rw-r--r-- | gamemode/init.lua | 47 |
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 + + + + + + |
