summaryrefslogtreecommitdiff
path: root/gamemode/init.lua
blob: 1e2e50667a92376da1dffb3f1d495919d05c60e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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