You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Nuke manual center functionality
rename some timers and functions aswell
* network active pvp center on editing start
and a name tweak
* Simplify center radius code
Actually test and fix syncActivePvpCenter
* Update lua/cfc_random_spawn/module/sv_player_spawning.lua
Co-authored-by: legokidlogan <26103433+legokidlogan@users.noreply.github.com>
* Update README.md
Co-authored-by: legokidlogan <26103433+legokidlogan@users.noreply.github.com>
---------
Co-authored-by: legokidlogan <26103433+legokidlogan@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+3-14Lines changed: 3 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Clone or download this repository into your `garrysmod/addons` folder and restar
12
12
## Usage Instructions
13
13
The config for this addon is located in the `cfc_random_spawn/lua/cfc_random_spawn/sv_config.lua` file.
14
14
Here you will find 2 config constants, and the spawn points table structure. The constants are as follows:
15
-
-`DEFAULT_CENTER_CUTOFF``(default 3000)` - Default cutoff range from the most popular pvp center, where players further away from this will be ignored. The system tries to place you closest to everyone else.
15
+
-`DEFAULT_CENTER_RADIUS``(default 3000)` - Default cutoff range from the most popular pvp center, where players further away from this will be ignored. The system tries to place you closest to everyone else.
16
16
-`CLOSENESS_LIMIT``(default 400)` - Will not choose spawnpoints that are within this many units of a valid player (i.e. a living pvper). 0 to disable.
17
17
-`SELECTION_SIZE``(default 8)` - Max number of 'ideal' spawnpoints to select from randomly.
18
18
-`CENTER_UPDATE_INTERVAL``(default 60)` - The gap (in seconds) between each center popularity update. If set to 0, will update on every respawn.
@@ -22,13 +22,8 @@ Adding spawnpoints is done as follows:
22
22
- Create an entry to the `CUSTOM_SPAWNS` table for the map of your choosing, as follows:
@@ -40,12 +35,8 @@ Adding spawnpoints is done as follows:
40
35
}
41
36
```
42
37
Where
43
-
-`centerCutoff` overrides `DEFAULT_CENTER_CUTOFF` for this map.
44
38
-`centerUpdateInterval` overrides `CENTER_UPDATE_INTERVAL` for this map.
45
-
-`dynamicCenterStartingPos` defines the position to use for locating the dynamic pvp center (requies zero manual pvp centers) when no active combat is happening. Best positioned at the 'natural spawn area' of the map, as this is guaranteed to happen on initial map load. Defaults to `Vector( 0, 0, 0 )`.
46
-
-**pvpCenters**: defines one or more central positions where pvp most often takes place around, with the first one being the fallback if there are no pvpers. If none are defined, will default to the average position of all spawnpoints for this map.
47
-
-`centerPos` is the position for the pvp center.
48
-
-`overrideCutoff` overrides the map/default cutoff value for obtaining the average player position near this specific pvp center, useful for maps with many centers that vary heavily in size.
39
+
-`dynamicCenterStartingPos` defines the position to use for locating the dynamic pvp center when no active combat is happening. Best positioned at the 'natural spawn area' of the map, as this is guaranteed to happen on initial map load. Defaults to `Vector( 0, 0, 0 )`.
49
40
-**zones**: defines boxes that separate spawns into groups. Except in rare cases, spawns will only be chosen if they are in the same zone as the currently active pvp center. Any spawns not contained by a zone will be added to a default group.
50
41
-`cornerA` is the first corner of the zone.
51
42
-`cornerB` is the second corner of the zone.
@@ -62,12 +53,10 @@ To enable this tool run `cfc_spawneditor_toggle` in console.
62
53
63
54
Features:
64
55
- To add / remove spawns `cfc_spawneditor_spawnadd` / `cfc_spawneditor_spawndel`
65
-
- To add / remove pvp centers `cfc_spawneditor_centeradd` / `cfc_spawneditor_centerdel`
66
56
- To mark / cancel / add / remove zones `cfc_spawneditor_zonea` and `cfc_spawneditor_zoneb` / `cfc_spawneditor_zonecancel` / `cfc_spawneditor_zoneadd` / `cfc_spawneditor_zonedel`
67
57
- Zones will be previewed in magenta, then turn cyan when confirmed.
68
-
- To change the cutoff radius for the current map `cfc_spawneditor_cutoff`
69
58
- To export the current map's spawnpoints to console use `cfc_spawneditor_export`, you can then paste this into sv_config.lua
70
-
- To change the update interval for pvp centers temporarily for debugging, use `cfc_spawneditor_center_interval <interval>`
59
+
- To change the update interval for pvp centers temporarily for debugging, use `cfc_spawneditor_pvpcenter_update_interval <interval>`
0 commit comments