Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unction ENT:Think()
- if ( string.find( string.lower( game.GetMap() ), "bhop_eazy" ) ) then test = 1000
- elseif ( string.find( string.lower( game.GetMap() ), "bhop_eazy_v2" ) ) then test = 2000
- elseif ( string.find( string.lower( game.GetMap() ), "bhop_cobblestone" ) ) then test = 3000
- elseif ( string.find( string.lower( game.GetMap() ), "bhop_eazy" ) ) then test = 4000
- elseif ( string.find( string.lower( game.GetMap() ), "bhop_eazy" ) ) then test = 5000
- elseif ( string.find( string.lower( game.GetMap() ), "bhop_eazy" ) ) then test = 6000
- else test = 1
- end
- for _,ply in pairs(player.GetAll()) do
- if(ply:Team() == TEAM_SPECTATOR) then continue end
- if (ply:GetPos() + ply:GetUp()*40):Distance(self.Entity:GetPos()) <= 96 then
- if not self:PlayerTouched(ply) then
- if(self.Reward == nil) then return end
- local lastDiff = self.Diffs[ply:UniqueID()]
- local reward = 0
- if(lastDiff == nil or lastDiff == 0) then
- reward = self.Reward*test*self:GetMultiplier(ply:Team())
- self.Diffs[ply:UniqueID()] = ply:Team()
- else
- if(ply:Team() > lastDiff) then
- reward = (self.Reward*self:GetMultiplier(ply:Team()))-(self.Reward*self:GetMultiplier(lastDiff))
- self.Diffs[ply:UniqueID()] = ply:Team()
- end
- end
- if(reward > 0) then ply:PS_GivePoints(reward) end
- self:SendNotification(ply, reward)
- table.insert(self.Touched,ply:SteamID())
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement