I just started a new server, and the collisions for players don't work. The collisions work in singleplayer, and when I host a server, but on a dedicated server it doesn't want to work. The gamemode is Zombie Survival 2.1, and here's the gamemodes code:
[code]if not MYSELFVALID then return end
local myteam = MySelf:Team()
for k,v in pairs(player.GetAll()) do
if v:Team() == myteam then
v:SetCollisionGroup(COLLISION_GROUP_DEBRIS_TRIGGER)
else
v:SetCollisionGroup(COLLISION_GROUP_PLAYER)
end
end
require("guardian")
function ShouldEntitiesCollide(ent1, ent2)
local enta = Entity(ent1)
local entb = Entity(ent2)
if enta:IsPlayer() and entb:IsPlayer() then
return enta:Team() == entb:Team()
end
return true
end[/code]
You have got the gm_guardian module installed, right?
My server may have not let me upload it since it's a .dll file, let me check.
Edit: Oh wow it's not up there. I feel kinda stupid not even looking for the guardian file. It turns out I have to return should collide to false because true breaks it. Thanks FlapJack :)
Sorry, you need to Log In to post a reply to this thread.