36 lines
945 B
Lua
36 lines
945 B
Lua
horrormovement = false
|
|
|
|
hook.Add( "PlayerSpawn", "SpawningInitialize", function(player)
|
|
timer.Simple(0.3,function()
|
|
if(player:IsValid()) then
|
|
player:SetCollisionGroup(15)
|
|
player:SetCanZoom(false)
|
|
if(horrormovement) then
|
|
player:SetSlowWalkSpeed(120)
|
|
player:SetWalkSpeed(180)
|
|
player:SetRunSpeed(140)
|
|
player:SetMaxSpeed(195)
|
|
player:SetJumpPower(150)
|
|
else
|
|
player:SetSlowWalkSpeed(140)
|
|
player:SetWalkSpeed(155)
|
|
player:SetRunSpeed(215)
|
|
player:SetMaxSpeed(215)
|
|
player:SetJumpPower(160)
|
|
end
|
|
player:ConCommand([[mat_colorcorrection 1]])
|
|
player:ConCommand([[cl_showhints 0]])
|
|
end
|
|
end )
|
|
player:SetMoveType(MOVETYPE_WALK)
|
|
end )
|
|
|
|
--hook.Add( "PlayerSay", "help", function( ply, text, public )
|
|
-- text = string.lower( text ) -- Make the chat message entirely lowercase
|
|
-- local disabled = 0
|
|
-- if ( text == "!help" ) then
|
|
-- printHelp(ply)
|
|
-- return ""
|
|
-- end
|
|
--end )
|