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

[CS:S] MGspawn [1.1.1] || Respawn players killed by world or props


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Jasonbourne
Senior Member
Join Date: Nov 2011
Location: Sydney , AUS
Plugin ID:
2767
Plugin Version:
1.1.1
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Respawns players killed by world on maps with one team spawn point
    Old 01-07-2012 , 08:04   [CS:S] MGspawn [1.1.1] || Respawn players killed by world or props
    Reply With Quote #1

    [CS:S] MGspawn [1.1.1]
    Updated [09/01/2012]

    If you have any issues with repeated spawn killing ,
    Then increase your sm_mgspawn_delay to a value
    equal to or greater than 1.0


    Aim:
    Code:
    This plugin is aimed at mini-games servers. It is designed to respawn 
    players killed by world or props. This saves them going to spec and back 
    to the team to respawn. This plugin is enabled for maps which have only 
    one team spawn (either ct or t but not both // can be disabled with cvar) 
    
    The specific map i had in mind when developing this plugin was mg_saw,
    im not sure what this style of mg maps are refereed to but if there are
    more checks needed before enabling the plugin on these maps i will gladly
    add them in
    This does not respawn players that are killed by other players at any time

    Cvars:
    Code:
    sm_mgspawn_enable <1/0> // Enable mgspawn. [0 = FALSE, 1 = TRUE]
    sm_mgspawn_delay <0.1> // Set respawn delay
    sm_mgspawn_spawnpoints <1/0> // Set to 0 to enable for all maps or set to 1 to only enable when there are one team spawn points set
    Plans:
    Code:
    Hooking cvar change so that spawnpoint logic is calculated not only on map change but also cvar change

    Changelog:

    Code:
    1.0.0 
    - Initial Release
    1.0.1 
    - Added version cvar 
    - Added auto created config file
    1.1.0
    - Added Spawn Kill detection // plugin turns itself off
    - Removed auto-generated config
    1.1.1
    -Improved Spawn Kill detection logic
    Plugin Logic:
    Code:
    Spawn Points
    
    Plugin will be enabled only when there are either no ct spawn points or no t spawn points.
    
    SpawnKiller Check
    
    Plugin will be disabled if player dies from prop/world within 0.2 seconds of spawning
    Attached Files
    File Type: sp Get Plugin or Get Source (mgspawn.sp - 2342 views - 3.6 KB)

    Last edited by Jasonbourne; 01-08-2012 at 21:33.
    Jasonbourne is offline
    Jasonbourne
    Senior Member
    Join Date: Nov 2011
    Location: Sydney , AUS
    Old 01-07-2012 , 21:41   Re: [CS:S] MGspawn [1.0.1] [07/01/2012]
    Reply With Quote #2

    V1.0.1

    Code:
    Added version cvar  
    Added auto created config file

    Last edited by Jasonbourne; 01-07-2012 at 21:41.
    Jasonbourne is offline
    amohanlall32
    SourceMod Donor
    Join Date: Sep 2009
    Location: Female
    Old 01-08-2012 , 07:06   Re: [CS:S] MGspawn [1.0.1] || Respawn players killed by world or props
    Reply With Quote #3

    Wouldn't this cause an endless loop of deaths on maps that have spawn killers? That's the only fault I can see with it. Other than that good work, this will be useful for many.
    __________________

    Last edited by amohanlall32; 01-08-2012 at 07:07.
    amohanlall32 is offline
    Jasonbourne
    Senior Member
    Join Date: Nov 2011
    Location: Sydney , AUS
    Old 01-08-2012 , 07:21   Re: [CS:S] MGspawn [1.0.1] || Respawn players killed by world or props
    Reply With Quote #4

    Quote:
    Originally Posted by amohanlall32 View Post
    Wouldn't this cause an endless loop of deaths on maps that have spawn killers? That's the only fault I can see with it. Other than that good work, this will be useful for many.
    Thanks for the feedback

    i just ran into that problem with mg_office_coursee_2011

    still coding a work around

    trying to check if player has died within 0.5 of spawn

    that will disable the plugin
    Jasonbourne is offline
    Fearts
    ferts of daeth
    Join Date: Oct 2008
    Old 01-08-2012 , 13:31   Re: [CS:S] MGspawn [1.0.1] || Respawn players killed by world or props
    Reply With Quote #5

    Make sure you do if player has died within 0.5 of spawn by world damage. Cause what if someone spawns and tries to go into spectate. Or maybe a black list of maps not to load the plugins.
    __________________

    Last edited by Fearts; 01-08-2012 at 13:32.
    Fearts is offline
    Jasonbourne
    Senior Member
    Join Date: Nov 2011
    Location: Sydney , AUS
    Old 01-08-2012 , 16:48   Re: [CS:S] MGspawn [1.1.0] || Respawn players killed by world or props
    Reply With Quote #6

    V1.1.0

    Logic revision

    Code:
    - Added spawn kill check
    - Removed auto-config
    Quote:
    Originally Posted by Fearts View Post
    Make sure you do if player has died within 0.5 of spawn by world damage. Cause what if someone spawns and tries to go into spectate. Or maybe a black list of maps not to load the plugins.
    sorry if i was unclear in my above post but thats what i meant

    I can work on the blacklisting but i would rather make the plugin capable of deciding whether to be enabled or disabled

    You can test the spawn kill check on mg_office_coursee_2011

    As always thanks for the feedback

    Last edited by Jasonbourne; 01-08-2012 at 16:51.
    Jasonbourne is offline
    Jasonbourne
    Senior Member
    Join Date: Nov 2011
    Location: Sydney , AUS
    Old 01-08-2012 , 20:49   Re: [CS:S] MGspawn [1.1.1] || Respawn players killed by world or props
    Reply With Quote #7

    V1.1.1

    Code:
    - Improved spawn kill detection logic
    - Removed unhook events // due to errors
    Jasonbourne is offline
    Bellicus
    AlliedModders Donor
    Join Date: Mar 2011
    Location: Chicago
    Old 01-12-2012 , 05:37   Re: [CS:S] MGspawn [1.1.1] || Respawn players killed by world or props
    Reply With Quote #8

    This plugin respawns you once in mg_saw_iv then it stops respawning players
    Bellicus is offline
    Jasonbourne
    Senior Member
    Join Date: Nov 2011
    Location: Sydney , AUS
    Old 01-12-2012 , 09:36   Re: [CS:S] MGspawn [1.1.1] || Respawn players killed by world or props
    Reply With Quote #9

    Quote:
    Originally Posted by Bellicus View Post
    This plugin respawns you once in mg_saw_iv then it stops respawning players
    Hi,

    Thats because mg_saw_iv probably has a spawn killer for afks

    in which case the plugin would detect and turn itself off

    does the map automatically slays you after some time

    with the plugin disabled?
    Jasonbourne is offline
    Bellicus
    AlliedModders Donor
    Join Date: Mar 2011
    Location: Chicago
    Old 01-12-2012 , 10:47   Re: [CS:S] MGspawn [1.1.1] || Respawn players killed by world or props
    Reply With Quote #10

    Yes, Even though there's a nice gap from when you start and when spawnkiller is activated, Same with mg_office_coursee_2011_v2.
    Bellicus is offline
    Reply


    Thread Tools
    Display Modes

    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 11:41.


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