Skip to content

Commit ac22847

Browse files
committed
Merge branch 'master' of https://github.com/PurrCoding/cinema
2 parents 1b11246 + 8c68521 commit ac22847

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

cinema_modded/entities/entities/theater_door/sh_init.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ ENT.AutomaticFrameAdvance = true
44

55
ENT.DelayTime = 0.75 --how long until the screen begins to fade
66
ENT.FadeTime = 0.80 --how long it takes to fade completely
7-
ENT.WaitTime = 0.10 --period for it to stay completely black
7+
ENT.WaitTime = 0.10 --period for it to stay completely black
8+
9+
ENT.PhysgunDisabled = true -- Physgun cannot pick up this entity

cinema_modded/gamemode/i18n/init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ end
2323
if SERVER then return end
2424

2525
local DefaultId = "en"
26-
local CurrentId = GetConVar("gmod_language"):GetString()
26+
local CurrentId = GetConVar("gmod_language"):GetString():lower()
2727

2828
local I18nColors = include("colors.lua")
2929
local TranslationSchema = include("schema.lua")
@@ -174,6 +174,7 @@ end
174174
-- Language change callback
175175
cvars.AddChangeCallback("gmod_language", function(_, value_old, value_new)
176176
if not CLIENT then return end
177+
value_new = value_new:lower()
177178
CurrentId = Languages[value_new] and value_new or DefaultId
178179
RunConsoleCommand("cinema_langupdate")
179180
end)

cinema_modded/gamemode/player.lua

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,18 +192,16 @@ end
192192
function GM:PlayerCanSeePlayersChat( strText, bTeamOnly, pListener, pSpeaker )
193193

194194
-- Console 'say' command
195-
if not IsValid(pSpeaker) then
195+
if not IsValid( pSpeaker ) then
196196
return true
197197
end
198198

199-
-- Local chat functions as global chat in Cinema
199+
-- Team chat will only boardcast to players in the same location
200200
if bTeamOnly then
201-
return true
201+
return pSpeaker:GetLocation() == pListener:GetLocation()
202202
end
203203

204-
-- Players should only receive chat messages from users in the same
205-
-- theater if it wasn't global.
206-
return pSpeaker:GetTheater() == pListener:GetTheater()
204+
return true
207205

208206
end
209207

cinema_modded/gamemode/player_shd.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ function GM:OnPlayerChat( player, strText, bTeamOnly, bPlayerIsDead )
2929
table.insert( tab, "*DEAD* " )
3030
end
3131

32-
if ( bTeamOnly ) then
32+
if ( bTeamOnly and IsValid(player) ) then
3333
table.insert( tab, Color( 123, 32, 29 ) )
34-
table.insert( tab, "(GLOBAL) " )
34+
table.insert( tab, "[" .. player:GetLocationName() .. "] " )
3535
end
3636

3737
if ( IsValid( player ) ) then

cinema_modded/gamemode/shared.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ GM.Website = "www.pixeltailgames.com"
55
GM.TeamBased = false
66

77
-- Enable sandbox functionalities
8-
local Cvar_DeriveSbox = CreateConVar("cinema_enable_sandbox", "0", {FCVAR_NOTIFY, FCVAR_REPLICATED,
9-
FCVAR_REPLICATED, FCVAR_LUA_SERVER, FCVAR_ARCHIVE}, "NEEDS SERVER RESTART!")
8+
local Cvar_DeriveSbox = GetConVar("cinema_enable_sandbox") -- This command is created by GMod itself (defined in cinema_modded.txt).
109

11-
if not GM.IsSandboxDerived and Cvar_DeriveSbox:GetBool() then
10+
if ( !GM.IsSandboxDerived and Cvar_DeriveSbox:GetBool() ) then
1211
DeriveGamemode( "sandbox" )
1312
end
1413

0 commit comments

Comments
 (0)