Raised This Month: $51 Target: $400
 12% 

[L4D2] Survivor Spawn Position Fix (Gabu's Version)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Plugin ID:
8145
Plugin Version:
2.1
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
5 
Plugin Description:
Fixes survivor spawns on some maps where other survivors might spawn in a non-intended area
Old 08-07-2022 , 22:31   [L4D2] Survivor Spawn Position Fix (Gabu's Version)
Reply With Quote #1

Survivor Spawn Position Fix (Gabu's Version)
This is my own version of the Survivor Spawn Position Fix. The way of achieving this is different from Dragokas' version hence a new thread.

This works by setting up an "optimal" startup position then moving all players whenever they need to. It will also work with the Director's ForceSurvivalPosition call where all the players are moved correctly to each position, no matter the survivor set.

ConVars
  • sm_l4d2_spawnpos_enabled
    • Determines if the plugin is active or not
      • Default: 1

Client Commands
  • sm_resetpos
    • Teleports you to the desired spawn point position.
      • Only usable if nobody has left the saferoom.

Changelog
  • 2.1
    • Fixed a bug where players could not move after a map change.
    • Deleted some unused functions from unreleased development versions.
  • 2.0
    • It now requires Left 4 DHooks Direct 1.119 or newer.
    • Changed the way the plugin works. Instead of creating entities the plugin will ensure every player will be in an "optimal" starting position. (Usually where Nick/Bill starts in the first map, or where the first player that enters the world in every other map).
      • This fixes erratic spawns in custom campaigns like Snow Den, Day Break, Deadbeat Escape while keeping compatibility with multiple branch spawns like the ones found in Resident Evil 3.
    • On spawn, the player will be teleported to this optimal position.
    • On ForceSurvivalPosition, every player will be forced to the position, not just the survivors set the map.*
      • It may be incompatible with plugins that allow you to be the L4D1 survivors in map where the holdout team appears.
      • This fixes the bug where the incorrect survivors might fall off the rescue vehicle. It may conflict with the same fix included in Dragoka's [L4D & L4D2] Special Exploit Fixes. Set l4d_sef_fall_transport_fix to 0 if you're using that plugin.
    • When the Director releases the survivor's positions (when the cutscene ends), the plugin will find an optimal spawn position again. This fixes changing spawnpoint positions in custom campaigns like Absolute Zero.
    • Added new command: sm_resetpos it will allow you to teleport to the desired spawnpoint if every fix failed. Only if nobody has left the safe room.
  • 1.2
    • Fixed a plugin failure where it would try to apply changes too soon.
    • Fixed several cases where it wouldn't apply the fix
    • Changed the generic spawn point from info_player_start to info_survivor_position, since it should work more consistently
  • 1.1
    • Fixed a plugin failure while trying to process ordered spawn points. (The plugin was incorrectly looking up for the wrong classname)
  • 1.0
    • Initial Release

Dependencies
Conflicts
Supported Games
  • Left 4 Dead 2 only
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_spawnpos_fix.sp - 387 views - 13.6 KB)
__________________

Last edited by gabuch2; 10-17-2022 at 20:43.
gabuch2 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode