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

[TF2] Prop Bonus Round (1.3)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Plugin ID:
1491
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 02-21-2010 , 19:21   [TF2] Prop Bonus Round (1.3)
    Reply With Quote #1

    [TF2] Prop Bonus Round (1.3)


    This is strictly a fun plugin. I thought it was way too boring and easy for the winning team to get kills with their all crits and faster speed. This makes the round-end bonus round a bit more...interesting.

    The credit for the idea goes to strontiumdog who made the DODS version of this. I also recently recoded his dods version a bit, it can be found ->> DODS version.


    Description: Pretty simple. The plugin just turns the losing team into random TF2 props. I also have a fun admin command added to allow admins to "prop" specific players for whatever reason. I hand picked all of the models. Some of the models blend in better than others. Some of them are just for fun and some may actually help escape death.

    ADMIN Command:
    sm_propplayer <#userid|name> (this is also auto-added to admin menu as "Prop player") This allows admins to manually prop players for fun during normal game.
    Admin Flag: BAN

    SM Commands:
    !third or sm_third
    !thirdperson or sm_thirdperson

    Prop players can type !third or !thirdperson to toggle themselves into thirdperson. Note: The thirdperson command currently does not show the player their model, it will just show them invisible. When I figure this issue out, ill update the plugin again.


    Install/USE:

    - Place .smx into the plugins folder of course.
    - Place propbonusround_models.txt -> addons\sourcemod\data\propbonusround_models.t xt
    - Config is auto-created --> cfg\sourcemod\plugin.propbonusround.cfg
    (All cvars are in this config)

    propbonusround_models.txt Info:
    External models file so you may edit, add, remove any models you wish. Use caution adding your own models though.

    Note: The plugin will automatically re-create the propbonusround_models.txt file if it is missing.


    Note: You can change the bonus round duration by editing 'mp_bonusroundtime' in the server.cfg if you want the bonus round to last a bit longer than the default of 15 seconds. The cvar has a max value of 30.


    Changelog:

    Code:
    11/29/10 - v1.3:
    - Rollback for previous update on the colorize code. I forgot about hat invisibility. Sorry. :)
    
    11/24/10 - v1.2:
    - Removed colorize code. Decided to allow guns to show visible. This will enable you to kinda tell what class they are if they are proped in middle of game.
    - Commented out 12 models from list as to help reduce strain on precache table that is causing crashes.
    - Did a little code maintenance....
    
    7/3/10 - v1.1 - Added check to make sure admin flag cvar isnt set to nothing. Added cvar to respawn dead team players so everyone can be propped.
    6/22/10 - v1.0 - Added stripping of all weapons to fix issue of player view models getting visual glitches with new model code when pressing attack.  
    5/24/10 - v0.9 - Possible fix for issue posted about models not being reset on players on round-start.  
    5/22/10 - v0.8 - Added round-end public announcement msg w/ cvar. Fixed plugin being broken due to valve update. Fixed incorrect post hook callbacks.  Had to remove (3) models from the models data file due to issues of them spawning in ground and no longer being able to fix that. Changed the lantern model to the "off" model without the flame effect that seemed to get stuck on the map. Thirdperson command works better, but unfortunately theres an issue with showing the player their model. Will need future update.
    v0.7 - Removed Logactivity cvar, no longer needed I dont think. Removed the precache models console spam, I suppose that was unnecessary as well.
    v0.6 - Fixed rendermode errors on non-prop entities?(no idea how that happens but..) New Addcond code to deal with demoman glowing eyes. Flagged equip timer with timer_flag_no_mapchange.
    v0.5 - Possible crash issue fixed I think(changed the prop deletion code a bit, IsValidEdict/RemoveEdict = bad mkay?). Added couple minor plugin disabled checks that were missing. No longer removing models upon disconnects due to game engine apparently taking care of this?!?
    v0.4 - Removed sm_forcethird cvar. I forgot TF2 already puts losing players into thirdperson(woops).  Changed IsValidEdict to IsValidEntity(Possible crash related?). Added 2 more models to list. 
    v0.3 - Added admin command to prop individual players. sm_propplayer <#userid|name>. Moved some code around.
    v0.2 - Added admin only and flag cvars. Added logactivity debug cvar for model related attachment stuff.  Added a few checks for things in.
    v0.1 - Initial release.


    Credits:

    - Much thanks to Antithasys for slave labor, overall general help and idiot questions of mine.
    - Thanks to strontiumdog for idea and dods version.
    Attached Files
    File Type: txt propbonusround_models.txt (1.7 KB, 1342 views)
    File Type: txt propbonusround_models_old.txt (2.4 KB, 806 views)
    File Type: sp Get Plugin or Get Source (prop_bonus_round.sp - 2602 views - 33.5 KB)

    Last edited by retsam; 12-04-2010 at 21:10. Reason: new version
    retsam is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 02-21-2010 , 20:08   Re: [TF2] Prop Bonus Round
    Reply With Quote #2

    Lol this looks great. Also it's "lulz" not "lols".
    noodleboy347 is offline
    flubber
    Senior Member
    Join Date: Oct 2007
    Old 02-22-2010 , 11:25   Re: [TF2] Prop Bonus Round
    Reply With Quote #3

    One of the best plug in ever, thanks.
    flubber is offline
    blissend
    Member
    Join Date: Mar 2008
    Old 02-22-2010 , 16:17   Re: [TF2] Prop Bonus Round (v0.1)
    Reply With Quote #4

    Quote:
    Warning: I am going to call this a BETA version for now, since it has not been tested on a real, full server yet. Ive only tested with 1 or 2 other players and/or full of bots.
    I've tested this on a full TF2 32 player server using SM 1.3.1 on linux. So far no crashes. I will be added it to our other 32 player server too since everyone seems to like
    blissend is offline
    flubber
    Senior Member
    Join Date: Oct 2007
    Old 02-23-2010 , 04:45   Re: [TF2] Prop Bonus Round (v0.1)
    Reply With Quote #5

    We had a crash yesterday, server was stable before i putted the plug-in.
    Don't know if it's related, i let the plug in on the server and will be giving more feedback.
    flubber is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 02-23-2010 , 11:14   Re: [TF2] Prop Bonus Round (v0.1)
    Reply With Quote #6

    I'll do some testing as well. :]
    Drixevel is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 02-23-2010 , 12:06   Re: [TF2] Prop Bonus Round (v0.1)
    Reply With Quote #7

    Quote:
    Originally Posted by flubber View Post
    We had a crash yesterday, server was stable before i putted the plug-in.
    Don't know if it's related, i let the plug in on the server and will be giving more feedback.
    Hum ya, let me know. When im not so busy during the week, ill be adding it to some of our servers to test also.

    Did it crash during the bonus round? If it was my plugin, id think it would be crashing during bonus round or roundstart, thats when all the stuff happens. During normal game, the plugin is doing almost nothing. However, I am not a pro at model attachment code, and I was unsure on exactly how it should be done.

    Last edited by retsam; 02-23-2010 at 12:09.
    retsam is offline
    Onedda
    Senior Member
    Join Date: May 2009
    Old 02-23-2010 , 14:02   Re: [TF2] Prop Bonus Round (v0.1)
    Reply With Quote #8

    Just had a server crash when bonus round started. Nothing in the logs or anything.

    was running for around 4hrs all ok then wam.

    cheers
    Onedda
    __________________
    Onedda is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 02-23-2010 , 17:28   Re: [TF2] Prop Bonus Round (v0.1)
    Reply With Quote #9

    Alright. Damn, sounds like there is some issue with some aspect of the model attachment code then. Thx for the confirmation and being the guinea pig.

    Sorry guys. This is what I was unsure of. Im gonna need to look into it. Ill post an updated version maybe later in the week.

    This kinda stuff makes me angry. No errors or nothing, and runs fine for a while, then some random crash. grrrr.
    retsam is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 02-23-2010 , 21:50   Re: [TF2] Prop Bonus Round (v0.1)
    Reply With Quote #10

    bleh, crash.
    Drixevel 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 20:56.


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