CFC's refactor of the CFC Mobile SpawnPoint 2
| Convar | Description | Default |
|---|---|---|
| sbox_maxsent_spawnpoint | The max number of spawn points per player. | 1 |
| cfc_spawnpoints_cooldown_on_ply_spawn | When a player spawns, they must wait this many seconds before they can create/link spawn points. | 10 |
| cfc_spawnpoints_cooldown_on_point_spawn | When a spawn point is created, it cannot be linked to for this many seconds. | 5 |
| cfc_spawnpoints_removal_window | Player/point cooldowns only apply if a previous spawn point was removed in the past X seconds. 0 to not alter cooldowns. | 30 |
| cfc_spawnpoints_interact_cooldown | Per-player interaction cooldown for spawn points. | 0.5 |
denyReason = CFC_SpawnPoints_DenyLink( spawnPoint, ply )- Return true or a string to prevent a player from linking to a spawn point.
- Returning a string will display it to the player to show why they couldn't do the link.
denyReason = CFC_SpawnPoints_DenyCreation( ply, data )- Return true or a string to prevent a player from creating a spawn point.
- Returning a string will display it to the player to show why they couldn't create the spawn point.
datais a table with keysPosandAngle, for where the spawn point will be located.
ignoreCooldown = CFC_SpawnPoints_IgnorePlayerSpawnCooldown( ply )- Allow a player to ignore the spawn point creation/linking cooldown from the player spawning in.
- For example, make builders ignore it if you have a build/pvp system.
ignoreCooldown = CFC_SpawnPoints_IgnorePointSpawnCooldown( spawnPoint, ply )- Allow a player to ignore the linking cooldown of a recently-spawned spawn point.
- For example, make builders ignore it if you have a build/pvp system.
allow, denyReason = CFC_SpawnPoints_IsFriendly( spawnPoint, owner, ply )- Override the default friendliness check.
- If
allowis false, you must provide adenyReasonstring.