AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Prop Bonus Round (1.3) (https://forums.alliedmods.net/showthread.php?t=119481)

retsam 02-21-2010 19:21

[TF2] Prop Bonus Round (1.3)
 
3 Attachment(s)
[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. :P
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. :wink:

noodleboy347 02-21-2010 20:08

Re: [TF2] Prop Bonus Round
 
Lol this looks great. Also it's "lulz" not "lols".

flubber 02-22-2010 11:25

Re: [TF2] Prop Bonus Round
 
One of the best plug in ever, thanks.

blissend 02-22-2010 16:17

Re: [TF2] Prop Bonus Round (v0.1)
 
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 8)

flubber 02-23-2010 04:45

Re: [TF2] Prop Bonus Round (v0.1)
 
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.

Drixevel 02-23-2010 11:14

Re: [TF2] Prop Bonus Round (v0.1)
 
I'll do some testing as well. :]

retsam 02-23-2010 12:06

Re: [TF2] Prop Bonus Round (v0.1)
 
Quote:

Originally Posted by flubber (Post 1097390)
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.

Onedda 02-23-2010 14:02

Re: [TF2] Prop Bonus Round (v0.1)
 
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

retsam 02-23-2010 17:28

Re: [TF2] Prop Bonus Round (v0.1)
 
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. :P

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.

Drixevel 02-23-2010 21:50

Re: [TF2] Prop Bonus Round (v0.1)
 
bleh, crash. :(


All times are GMT -4. The time now is 12:31.

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