Open jensewe opened 1 year ago
DOOR_RANGE_TOLLERANCE? Something is confusing me with this code.
DOOR_RANGE_TOLLERANCE? Something is confusing me with this code.
Stolen from Silvers' left4dhooks, looks reliable. Not really matters or instead convert into flow percent like this: https://developer.valvesoftware.com/wiki/L4D2_Vscript_Helpers
some maps like blood harvest & the passing finale have spawn attributes inside a finale marked area
For players it would be more correct to use GetLastKnowArea.
Latest Left 4 DHooks introduces more nav stuff and spawn attributes become available, pretty clean in use. Pratically this was used in one of my plugin
l4d2_spit_spread_patch
and worked without issues.Related plugin sources: https://github.com/SirPlease/L4D2-Competitive-Rework/blob/5f553acbdfc6a906e88541a0a7d0ab2b11eb8ead/addons/sourcemod/scripting/l4d2_saferoom_detect.sp#L160-L345 https://github.com/SirPlease/L4D2-Competitive-Rework/blob/14e26036d158192fb6f2163c3ceb2dd0c4e6c51e/addons/sourcemod/scripting/confoglcompmod/MapInfo.sp#L339-L356 https://github.com/SirPlease/L4D2-Competitive-Rework/blob/c048ca752681436804403dff79ac06016fbe279b/addons/sourcemod/scripting/l4d2lib/mapinfo.sp#L314-L339 https://github.com/SirPlease/L4D2-Competitive-Rework/blob/14e26036d158192fb6f2163c3ceb2dd0c4e6c51e/addons/sourcemod/scripting/confoglcompmod/WeaponInformation.sp#L1035-L1050 https://github.com/SirPlease/L4D2-Competitive-Rework/blob/14e26036d158192fb6f2163c3ceb2dd0c4e6c51e/addons/sourcemod/scripting/confoglcompmod/WeaponInformation.sp#L894-L918 https://github.com/SirPlease/L4D2-Competitive-Rework/blob/c0e5ae938df88614f41d15592a5b7c4685bb6e43/addons/sourcemod/scripting/nosaferoomkits.sp#L44-L72