Raised This Month: $32 Target: $400
 8% 

[L4D] Survivor Spawn Position Fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Plugin ID:
8127
Plugin Version:
1.3
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    9 
    Plugin Description:
    Force teleport survivors on bugged maps when they spawn underground
    Old 07-13-2022 , 06:13   [L4D] Survivor Spawn Position Fix
    Reply With Quote #1

    Description:
    Some addon maps has weird bug, when you first time spawn somewhere underground.
    This plugin is intended to fix that by force teleporting survivors to "info_survivor_position" or "info_player_start" entity location if initial spawn vector located too far (150.0 units > these entities or in case player stucked).
    Features:
    - 2 methods of teleportation:
    * warp (using director command)
    * teleport (sdktools), used if first one failed

    - 2 entities detection:
    * info_survivor_position
    * info_player_start

    - Fix 5+ players spawned on the wrong warp point (e.g. map: l4d_garage01_alleys)

    More technical details:
    Spoiler


    Recommended for:
    - addon maps (example of map: Fort Noesis (L4D1))

    Settings (ConVars):
    see: cfg/sourcemod/l4d_surv_spawnpos.cfg:
    PHP Code:
    // Enable plugin (1 - On / 0 - Off)
    l4d_surv_spawnpos_enabled "1" 
    Commands:
    They are only available if you recompile plugin with #define DEBUG 1
    PHP Code:
    // Show pre-defined spawn entity position
    sm_spawnpos

    // Warp to survivor position using director command
    sm_spawnwarp

    // Teleport to survivor position entity
    sm_spawntel 
    Compatibility:
    - L4D1
    - L4D2
    Installation
    Copy l4d_survivor_spawnpos_fix.smx to folder: "addons/sourcemod/plugins"
    Donate
    Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
    - Patreon (Paypal)
    - BitCoin
    - Ю.Money
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_survivor_spawnpos_fix.sp - 532 views - 12.8 KB)
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 08-14-2022 at 09:40.
    Dragokas is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 07-13-2022 , 09:03   Re: [L4D] Survivor Spawn Position Fix
    Reply With Quote #2

    Updated.

    Quote:
    1.1 (13-Jul-2022)
    - Better distance detection (count the minimum distance to all of spawn entities).
    - Prevented possible teleport in mid-game.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    gabuch2
    AlliedModders Donor
    Join Date: Mar 2011
    Location: Chile
    Old 07-13-2022 , 11:55   Re: [L4D] Survivor Spawn Position Fix
    Reply With Quote #3

    Good job, I was trying to make something like this but in the end I just tried to fix the map with Stripper.
    __________________
    gabuch2 is offline
    ZBzibing
    Senior Member
    Join Date: Dec 2012
    Old 07-14-2022 , 01:02   Re: [L4D] Survivor Spawn Position Fix
    Reply With Quote #4

    Quote:
    Originally Posted by gabuch2 View Post
    Good job, I was trying to make something like this but in the end I just tried to fix the map with Stripper.
    Hahaha, in the end, I also used stripper to solve it
    __________________
    Please forgive, If I'm not describing it accurately. I use google translate
    Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:
    ZBzibing is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 07-14-2022 , 10:51   Re: [L4D] Survivor Spawn Position Fix
    Reply With Quote #5

    I was lazy to use stripper, get coordinates, write map names ... each time when broken map found
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    thewintersoldier97
    Senior Member
    Join Date: Aug 2021
    Location: Vietnam
    Old 07-15-2022 , 09:22   Re: [L4D] Survivor Spawn Position Fix
    Reply With Quote #6

    Damn, awesome work Dragokas! Thank you
    __________________

    Looking for some fun!
    thewintersoldier97 is offline
    hefiwhfcds2
    Junior Member
    Join Date: Jun 2022
    Old 07-15-2022 , 09:57   Re: [L4D] Survivor Spawn Position Fix
    Reply With Quote #7

    Does it solve the situation where some plugins teleport and the player gets stuck in the wall
    hefiwhfcds2 is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 07-15-2022 , 10:29   Re: [L4D] Survivor Spawn Position Fix
    Reply With Quote #8

    Quote:
    Originally Posted by hefiwhfcds2 View Post
    Does it solve the situation where some plugins teleport and the player gets stuck in the wall
    No, author should fix "some plugins".

    There is "!stuck" command in [L4D1 & L4D2] Vote noobs teleporter plugin, which may help you.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    replay_84
    Senior Member
    Join Date: Jun 2021
    Old 07-16-2022 , 07:39   Re: [L4D] Survivor Spawn Position Fix
    Reply With Quote #9

    Can someone upload a recompiled version with #define DEBUG enabled? Or even explain to me how to install newdecls? I'm getting errors compiling.
    replay_84 is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 07-16-2022 , 13:21   Re: [L4D] Survivor Spawn Position Fix
    Reply With Quote #10

    open file, change
    Code:
     #define DEBUG 0
    with
    Code:
     #define DEBUG 1
    compile with https://spider.limetech.io/
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Reply



    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 00:21.


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