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

[TF2] Spawn Sentry on death


Post New Thread Reply   
 
Thread Tools Display Modes
Author
HL-SDK
Member
Join Date: Jan 2009
Plugin ID:
735
Plugin Version:
0.4
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Creates a sentry for a player when he/she dies
    Old 01-24-2009 , 15:21   [TF2] Spawn Sentry on death
    Reply With Quote #1

    HL-SDK Sentry Spawner v0.5a (beta)
    Now you can have the last laugh



    Purpose:
    • Create a sentry for a player when he/she dies at the location of their death
    • Keep track of how many sentries that player has "created" by dying and limit to a number set by administrator
    CVARS:
    • sm_spawnsentry <-returns version of plugin
    • sm_spawnsentry_enabled <0|1> <-enables/disables plugin during gameplay (will not remove sentries)
    • sm_spawnsentry_maxsentries <1-20> <-maximum sentries a player has in stock when he/she dies (not affected by engineer's building of sentries), takes effect when clients reconnect or map change.
    • sm_spawnsentry_initlevel <1-3> <-can be hundreds of levels but at present is one of the three stock valve sentries. This is the level at which the sentry is to be created (can be upgraded + repaired by engies)
    • sm_spawnsentry_chance (0.00-1.00) <-- 0.50 is 50% chance. Defaults to 1.00
    • sm_spawnsentry_random <0|1> <-- Random leveled sentry?
    Version history:
    • 0.3 Submitted to public
    • 0.4 Added cvar sm_sentryspawner_chance
    • 0.5 Fixed problem with engineer's sentries (beta version, filename is sentryspawner_testing)
    • 0.5a Added random level spawned option (still beta version, filename is still sentryspawner_testing)
    [IMG]http://img231.**************/img231/1888/sentryspawnermk6.jpg[/IMG]

    Credit goes to The JCS, Muridas, bl4nk, and me, HL-SDK. A special thanks goes to liam12360 for his graphic.
    Attached Files
    File Type: sp Get Plugin or Get Source (sentryspawner.sp - 4490 views - 9.1 KB)
    File Type: smx sentryspawner_testing.smx (5.3 KB, 1031 views)
    File Type: sp Get Plugin or Get Source (sentryspawner[1]_critonly.sp - 2091 views - 9.1 KB)

    Last edited by HL-SDK; 05-19-2009 at 17:33.
    HL-SDK is offline
    BrutalGoerge
    AlliedModders Donor
    Join Date: Jul 2007
    Old 01-25-2009 , 01:35   Re: [TF2] Spawn Sentry on death
    Reply With Quote #2

    haha, seems to work just fine.
    __________________
    My Pluggies If you like, consider to me.
    BrutalGoerge is offline
    BrutalGoerge
    AlliedModders Donor
    Join Date: Jul 2007
    Old 01-26-2009 , 21:02   Re: [TF2] Spawn Sentry on death
    Reply With Quote #3

    now that ive seen it in action in a full server, i have some suggestions.
    - perhaps a chance cvar for modifything the chance someone will spawn a sentry on death
    - maxlife cvar, the maxlife of a spawn sentry 20 seconds or something. when you get too many, it causes lag
    - max total sentries cvar to limit the number of active sentries to prevent lag. 10 or so is plenty.
    - maybe only people with the A admin flag, or a flag set by a cvar spawn sentries
    __________________
    My Pluggies If you like, consider to me.

    Last edited by BrutalGoerge; 01-27-2009 at 02:38.
    BrutalGoerge is offline
    HL-SDK
    Member
    Join Date: Jan 2009
    Old 01-28-2009 , 09:17   Re: [TF2] Spawn Sentry on death
    Reply With Quote #4

    Thank you very much for the playtesting and suggestions, I have addded the sm_spawnsentry_chance cvar float for chance. Updated first post.

    As for max total sentries, a possible alternative would be to set _maxsentries so that a player can only create one or two, limiting the total.

    To be entirely honest, I would not know how to go about adding a timer to detroy a particular sentry and mark ot for destruction. If someone would set me on the right path, it would be interesting to learn. Not sure how much time I have to devote to scripting nowadays though.
    HL-SDK is offline
    liam12360
    Member
    Join Date: Jul 2008
    Old 01-28-2009 , 15:42   Re: [TF2] Spawn Sentry on death
    Reply With Quote #5

    haha nice! Good idea for a fun server. I was board so I whipped you up a logo thing.. enjoy! Feel free to use however you like.

    [IMG]http://img231.**************/img231/1888/sentryspawnermk6.th.jpg[/IMG]
    clik wth mor haste!
    __________________

    Last edited by liam12360; 01-28-2009 at 15:45.
    liam12360 is offline
    jockersoft
    Member
    Join Date: Aug 2008
    Old 01-30-2009 , 06:02   Re: [TF2] Spawn Sentry on death
    Reply With Quote #6

    Nice idea!
    We are giving it a try on 195.43.185.164:27050 and found a couple of bugs:
    -sentries at round end aren't removed and remain inactive
    -if you are an engineer, build a sentry, destroy it, the plugin will increase the number of sentries you can spawn at death
    jockersoft is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 01-30-2009 , 06:05   Re: [TF2] Spawn Sentry on death
    Reply With Quote #7

    Quote:
    Originally Posted by jockersoft View Post
    -if you are an engineer, build a sentry, destroy it, the plugin will increase the number of sentries you can spawn at death
    That's going to be a fun one to fix.
    bl4nk is offline
    FoxMulder
    Senior Member
    Join Date: Jan 2009
    Location: Orlando, FL
    Old 01-30-2009 , 11:18   Re: [TF2] Spawn Sentry on death
    Reply With Quote #8

    Thanks a lot, I've been researching on how to spawn a sentry...millions of thanks
    FoxMulder is offline
    BrutalGoerge
    AlliedModders Donor
    Join Date: Jul 2007
    Old 01-30-2009 , 20:45   Re: [TF2] Spawn Sentry on death
    Reply With Quote #9

    1 sentry per person may not be enough to limit them. Where there gets to be 6-10 of them, it get start to stutter.

    The chance var works great though, thanks!

    I noticed that the sentry rockets and whatnot seem to be coming from the bottom/base of the sentry. Is it possible to elevate it to around where the turret is?
    __________________
    My Pluggies If you like, consider to me.

    Last edited by BrutalGoerge; 01-30-2009 at 21:47.
    BrutalGoerge is offline
    msleeper
    Veteran Member
    Join Date: May 2008
    Location: Atlanta, Jawjuh
    Old 01-30-2009 , 21:37   Re: [TF2] Spawn Sentry on death
    Reply With Quote #10

    This plugin sounds really cool! We are gonna try it out tonight at Midnight Marble Madness at F7Lans, I'll be sure to tell you what the community thinks of it.

    If you need some help figuring out some of the ideas posted here, let me know. I am definitely interested in this project!
    __________________
    msleeper 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 07:26.


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