TF2 Idle Server Plugin?
is there a plugin that when a red player spawns it cannot move or shoot.
|
Re: TF2 Idle Server Plugin?
Not publicly available.
|
Re: TF2 Idle Server Plugin?
1 Attachment(s)
Here you go.
cvar is sm_disableteam. Set to 2 to freeze RED, 3 to freeze BLU, anything else to disable the plugin. |
Re: TF2 Idle Server Plugin?
You use a timer passing client on player spawn, then search and remove all weapons. This is going to cause some errors. There are other plugins, posted in other threads but that do this already. You may want to just use TF2_RemoveAllWeapons.. Inventory application would be a better hook. Or if using tf2items, just return plugin handled and prevent the item from even being generated.
This approach leaves clients in ref pose (looks dumb). It also can cause issues with spawn/view offset (freezing in place). |
Re: TF2 Idle Server Plugin?
I can make that plugin, just PM me.
|
Re: TF2 Idle Server Plugin?
Quote:
Removing all the weapons immediately upon spawn/application doesn't seem to sucessfully grab all weapons. Just tried it without a timer; sappers are not successfully removed. The delay is apparently necessary if you want to remove sappers and the engineer's build tool. Quote:
Quote:
Quote:
|
Re: TF2 Idle Server Plugin?
Quote:
|
Re: TF2 Idle Server Plugin?
There's no reason to skip client/validation checks. Just because sourcemod (generally) holds your hand and will stack trace if something bad does happen and bail you out, does not mean that it ever should.
It takes virtually no time to pass timers with userids, or validate clients :| I also learned this the hard way. Sorry I was a bit tired... I was referring to the strange/unlocks plugins which you could have modified. PHP Code:
This is a good one: #4 and on, passing clients safely https://forums.alliedmods.net/showth...ientFromSerial If you use userids, all you have to do is check if(client) to see if they are still ingame also, isclientingame implies isclientconnected. Only use isclientconnected, if you want to see if they are connected.. use isclientingame if you want to see if their entity exists in the game. allllllllllllllllllllllso since you are geting a userid from an event... you already have it, so just pass that to your timer. I'm not 100% sure on this, but I think I read somewhere that timers should return values for clarity =/ Either plugin_continue or plugin_stop I may very well be wrong on this one. I see people returning plugin_handled, and I dunno why they dot hat =| |
Re: TF2 Idle Server Plugin?
ddhoward, i have the plugin running great!, but i noticed players do not spawn with weapons. so when they die nothing drops. that can be a problem because when the other team is killing them in hopes of them dropping weapons for ammo nothing drops. is there an alteration that can be made so they spawn with weapons but cant shoot?
|
Re: TF2 Idle Server Plugin?
Hey fellas me again, can this plugin be modded to allow the team to move but disable weapons?
|
| All times are GMT -4. The time now is 05:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.