Raised This Month: $ Target: $400
 0% 

[L4D1 & L4D2] SM Respawn Improved


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Plugin ID:
7041
Plugin Version:
3.9
Plugin Category:
Admin Commands
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    129 
    Plugin Description:
    Allows players to be respawned at one's crosshair
    Old 04-14-2020 , 21:18   [L4D1 & L4D2] SM Respawn Improved
    Reply With Quote #1

    Description:
    Adds ability to respawn player:
    • from admin menu
    • from console
    • from 3-rd party plugins using native
    without losing statistics.

    This is fork, improved version based on v1.9.5 from this topic. See changelog below.
    Features:
    • Allow respawning even a spectator (with team selection)
    • Ability to spawn in crouch pose (like inside the transport / duct with limited height of space)
    • Very accurate positioning at crosshair preventing the collision
    • Lot of customization in respawn position (see ConVars and l4d_sm_respawn.inc)
    • Allow to switch the team (e.g. using sm_respawnex command)

    Commands:
    sm_respawn - Opens menu to select players for respawning.
    sm_respawn <target> - Respawn a player at your crosshair.
    sm_respawnex - Extended respawn options. Alternative to SM_Respawn() native. See the "Natives" section.
    Settings (ConVars):
    cfg/sourcemod/l4d_sm_respawn.cfg:
    PHP Code:
    // Respawn survivor players with this loadout
    // For the list of valid names see here: https://github.com/raziEiL/l4d2_weapons/blob/e7d7d75518150aea155acc3c37ff79f15e994b99/scripting/include/l4d2_weapons.inc#L149
    l4d_sm_respawn_loadout "smg,pistol,pain_pills"

    // Notify in chat and log about the respawn action? (0 - No, 1 - Yes)
    l4d_sm_respawn_showaction "1"

    // Add 'Respawn player' item in admin menu under 'Player commands' category? (0 - No, 1 - Yes)
    l4d_sm_respawn_adminmenu "1"

    // Where to respawn? (1 - next to you or alive player, 2 - at your crosshair, 32 - TakeOver bot firstly. You can combine with SPAWN_POSITION values, see .inc file)
    l4d_sm_respawn_position "34"

    // What teams to display in respawn menu? (2 - Spectators, 4 - Survivors, 8 - Infected, 16 - Dead only, 32 - No surv.bots, 64 - No inf.bots. You can combine)
    l4d_sm_respawn_teams "78"

    // Respawn infected player as ghost? (1 - Yes, 0 - No, instant respawn)
    l4d_sm_respawn_ghost "1"

    // Admin flag(s) required to use the respawn command
    l4d_sm_respawn_accessflag "d" // (ban) 
    Natives:
    Spoiler


    Installation
    - Just unpack /l4d_sm_respawn/ and copy to server.
    - If you update from the original 1.x version, perhaps you may want to remove "Respawn Survivor" entry from "configs/adminmenu_custom.txt" file (not required anymore, unless you are using adminmenu_sorting.txt feature).
    - If you want to use custom admin. menu items sorting (like, to make "Respawn Player" item to be the first in the list), here are required correct settings:
    (optionally) adminmenu_custom.txt

    (optionally) adminmenu_sorting.txt
    P.S. You don't need l4d_native_usage_sample.sp file. It is an example for developers, how to use natives.
    Credits
    - AtomicStryker & Ivailosp - original authors
    - doku - for original idea and sig
    - Crasher - for updates
    - SilverShot - for explaining me opcodes, tools, his patch samples and a lot of patience
    - MicroLeo - some code and signatures
    - Shadowysn - some signatures
    ChangeLog:
    Spoiler


    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
    P.S.:
    - Project and updates discontinued. Don't ask.
    Attached Files
    File Type: zip Respawn.zip (38.5 KB, 593 views)
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 09-03-2023 at 16:01.
    Dragokas 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 10:50.


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