Jump to content

Campers Exploit

Closed 2.4.7 2.4.8

So I found alot of my players found a way to use campers with the sleeping bags to be able to bring into a raidable then when they die they can respawn in the camper.. On a side note I use vehicle license so players end up recalling their campers inisde the base and use that for respawning.. Is there a way to block campers only but not all modular cars.. Not everyone uses this exploit and I dont want to punish everyone with a modular car in general.. 

Share this comment


Link to comment

added in next update. it will be enabled by default to block campers from entering the dome

Eject Mounts = Campers (true)

        private object OnPlayerRespawn(BasePlayer player, SleepingBag sleepingBag2)
        {
            if (EventTerritory(sleepingBag2.transform.position) && sleepingBag2.HasParent() && sleepingBag2.GetParentEntity().ShortPrefabName.Contains("module_camper")) return ServerMgr.FindSpawnPoint(player);
            return null;
        }

another option is the above where I just prevent the exploit by not allowing them to respawn on the bed inside of a camper when the camper is inside of a raidable bases event.

but this requires a hook and I'm against adding hooks unless they're really useful. but nothing is stopping you from adding it yourself by copy pasting this into the RaidableBases.cs if you prefer this solution instead. 

Edited by nivex
hook code did not work

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.1k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.