简单的插件,来让玩家在全地图的范围内随机重生。
权限
- randomrespawner.use - 在全图范围内随机重生。
配置文件
JSON:
{
"Maximum Attempts To Find A Respawn Position": 200,
"Min Distance From Other Playes On Respawn (Including NPC Players)": 20.0,
"Prevent Players To Be Respawn At Monuments": true,
"Prevent Players To Be Respawn At ZoneManager": true,
"Prevent Players To Be Respawn At RadiationZone": true,
"Minimum Slope": 0.0,
"Maximum Slope": 60.0,
"Biome Settings": {
"Arid": true,
"Temperate": true,
"Tundra": true,
"Arctic": true
},
"Splat Settings": {
"Dirt": true,
"Snow": true,
"Sand": true,
"Rock": true,
"Grass": true,
"Forest": true,
"Stones": true,
"Gravel": true
},
"Topology Settings": {
"Field": true,
"Cliff": true,
"Summit": true,
"Beachside": true,
"Beach": true,
"Forest": true,
"Forestside": true,
"Ocean": true,
"Oceanside": true,
"Decor": true,
"Monument": true,
"Road": true,
"Roadside": true,
"Swamp": true,
"River": true,
"Riverside": true,
"Lake": true,
"Lakeside": true,
"Offshore": true,
"Powerline": true,
"Plain": true,
"Building": true,
"Cliffside": true,
"Mountain": true,
"Clutter": true,
"Alt": true,
"Tier0": true,
"Tier1": true,
"Tier2": true,
"Mainland": true,
"Hilltop": true
}
}
Hook
C#:
private object OnRandomRespawn(BasePlayer player,Vector3 spawnPos)
API
C#:
private Vector3? GetRandomSpawnPos()