[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
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.
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.
!third or sm_third
!thirdperson or sm_thirdperson
Prop players can type !third
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.
- Place .smx into the plugins folder of course.
- Place propbonusround_models.txt ->
Config is auto-created --> cfg\sourcemod\plugin.propbonusround.cfg
(All cvars are in this config)
External models file so you may edit, add, remove any models you wish. Use caution adding your own models though.
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.
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.
- Much thanks to Antithasys
for slave labor, overall general help and idiot questions of mine.
- Thanks to strontiumdog
for idea and dods version.