Player Spawn Points Fixer v0.3.2

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

Player Spawn Points Fixer v0.3.2

Post by greenie »

Preamble:
This plugin is intended to replace AMXX Spawnangle Bug Fixer (jghg) plugin because it's fully automatic and you do not need to change map config files and calculate the right view direction at all.

Info (RUS):
This plugin allows to fix improperly set yaw angle of spawn points,
e.g. when you're spawned facing a wall or other obstacle too
close to you.

Plugin has extra features for CS/CZ mod also:
* dump spawn points into CSDM 2.x config file
* rebalance spawn points (for CT team only) on non-CS maps, e.g.
you can play deathmatch maps with both teams

Requirements:
* AMX/X 1.7x or higher
* Engine module
* some cvars are supported under CS only (see history for details)

New commands:
* psp_fixer_delta <angle> (default=45.0)
delta angle (in degrees) which is used to detect the best
spawn point angle with the furthest visible distance;
allowed values are: 360, 180, 90, 45, 22.5
* psp_fixer_dump [<flags>|?] (default=cth)
dump spawn point data of specified class into CSDM file;
valid flags are:
c, m - CT or single player monster entry (info_player_start class)
t, d - T or deathmatch entry (info_player_deathmatch class)
h, v - hostage entry (info_vip_start class)
To print console help please type 'psp_fixer_dump ?' (without
quotes)

New cvars:
* amx_psp_fixer <0|1> (default=1)
enable/disable plugin; requires restart a map to take effect
* psp_fixer_threshold <num> (default=150.0)
minimum visible distance at default spawn point angle which
satisfies you (i.e. spawn point angle remains original);
if the distance is less then the spawn point will be fixed
* psp_fixer_rebalance_mode <-1|0|1> (default=-1)
CT/T spawn points balance mode:
-1 - autodetect: balance feature is activated only if CSDM is on
0 - always off
1 - always on (do not recommend for CS maps)
* psp_fixer_rebalance_threshold <num> (default=1)
the maximum allowed difference between quantity of CT/T spawn points to skip rebalancing (e.g. usually CS map has 16CT and 16T, T - CT = 0 => skip; DM map has 19T and 1CT, 19 - 1 = 18 => execute spawn point rebalancing)
* psp_fixer_rebalance_flags <flags> (default=a)
setup rebalance algorithm behaviour:
a - clean-up original CT points on rebalancing

Known issues:
* psp_fixer_delta is reset after each map restart because it's a command actually, so you need to put it into amxx.cfg for customization

History:
0.3.2 [2007-01-27]
* fixed dumping of CSDM spawn point files; view angel & model angle
triplets where mixed up
* fixed improper getting of trace_line() result
* pcvar usage (optimization)
0.3.1 [2006-12-21]
* ported from AMX Mod 0.9.9 to AMX Mod X
... (see .sma file for full changelog)

plugin
source
Post Reply

Return to “General Purpose”