• Prop Hunt Spectator.
    0 replies, posted
Hi all. I'm trying to set my prop hunt teams so when they are certain modes are enabled. When a prop dies, that team is only allowed to spectate Hunters until they reach a certain rank within an addon. When a hunter dies, that team is only allowed to spectate Hunters until they reach a certain rank within an addon. At the moment I'm using this function CLASS:PostDeath(inflictor, attacker) if GAMEMODE.Config:DebugLog() then print("Prop Hunt: Spectator '"..self.Player:GetName().."' (SteamID: "..self.Player:SteamID()..") died.") end BaseClass.PostDeath(self, inflictor, attacker) self.Player:Spectate(OBS_MODE_CHASE) self.Player:UnSpectate() -- Hull GAMEMODE:PlayerHullFromEntity(self.Player, nil) self.Player:SetRenderMode(RENDERMODE_NORMAL) end So as you see it's set to chase mode, however I'm unsure where to tell it what I want i.e. only chase team 1 until rank "X". Any help would be great.
Sorry, you need to Log In to post a reply to this thread.