AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] No Enemies In Spawn (https://forums.alliedmods.net/showthread.php?t=202289)

Dr. McKay 12-02-2012 22:10

[TF2] No Enemies In Spawn
 
[TF2] No Enemies In Spawn

v1.2.1

Description:
There are a few glitches in TF2 that allow people to enter the enemy team's spawn room. This plugin will slay anyone who enters the enemy team's spawn room. Admins who have access to the sm_admin command are immune from slaying. Players are, of course, allowed to enter the enemy team's spawn room during humiliation.

This can also be useful on trade servers that run maps in which the entire spawn area isn't enclosed in a func_respawnroom, allowing engineers to build teleporter exits, which allow enemy spies in.

Don't use this on maps with moving spawns.

Cvars:
no_enemy_in_spawn_version - plugin version
no_enemy_in_spawn_message - message that will be displayed in the center of the screen when a player is slayed (defaults to "You may not enter the enemy team's spawn")
no_enemy_in_spawn_auto_update - enables automatic updating (has no effect if Updater is not installed) (defaults to 1)

Requirements:
Requires the SDK Hooks extension.

Installation:
Install SDK Hooks, put no_enemy_in_spawn.smx into /addons/sourcemod/plugins, and reboot your server or type "sm plugins load no_enemy_in_spawn" into your console or rcon.

Auto Update:
Install Updater. The plugin will be auto-updated according to your Updater settings. It'll work without Updater.

Changelog:
  • v1.2.0 (7/17/13)
    • Updated detection method
  • v1.1.0 (6/17/13)
    • Fixed the detection method
    • Updated Updater integration
  • v1.0.0 (12/2/12)
    • Initial release

Download Plugin (no_enemy_in_spawn.smx)
View Source (no_enemy_in_spawn.sp)

ReFlexPoison 12-04-2012 14:03

Re: [TF2] No Enemies In Spawn
 
Doesn't teamplay_round_win still get called on stalemates?

Dr. McKay 12-04-2012 14:16

Re: [TF2] No Enemies In Spawn
 
Quote:

Originally Posted by ReFlexPoison (Post 1848260)
Doesn't teamplay_round_win still get called on stalemates?

I'm pretty sure it doesn't.

Powerlord 12-04-2012 14:40

Re: [TF2] No Enemies In Spawn
 
Quote:

Originally Posted by ReFlexPoison (Post 1848260)
Doesn't teamplay_round_win still get called on stalemates?

Edit: Changed response once I read the code.

It doesn't really matter, since the plugin is just disabling a boolean in both that and teamplay_round_stalemate.

teamplay_round_win and teamplay_round_stalemate shouldn't be called when Sudden Death starts, if that's what you're asking.... teamplay_suddendeath_begin is called instead.

ReFlexPoison 12-04-2012 15:09

Re: [TF2] No Enemies In Spawn
 
Quote:

Originally Posted by Powerlord (Post 1848283)
Edit: Changed response once I read the code.

It doesn't really matter, since the plugin is just disabling a boolean in both that and teamplay_round_stalemate.

teamplay_round_win and teamplay_round_stalemate shouldn't be called when Sudden Death starts, if that's what you're asking.... teamplay_suddendeath_begin is called instead.

Gotchya. I was just curious when I force team 0 to win with the control point entity, teamplay_round_win still seems to be called even if it ends with a stalemate.

friagram 12-09-2012 02:43

Re: [TF2] No Enemies In Spawn
 
What's the point of the high five taunt if you can't push your way through visualizers?

Sreaper 12-09-2012 16:59

Re: [TF2] No Enemies In Spawn
 
Quote:

Originally Posted by friagram (Post 1850745)
What's the point of the high five taunt if you can't push your way through visualizers?

It's certainly not to exploit. If you have a problem with visualizers than you can remove them from your server.

Mitchell 12-09-2012 18:09

Re: [TF2] No Enemies In Spawn
 
Quote:

Originally Posted by Sreaper (Post 1851135)
It's certainly not to exploit. If you have a problem with visualizers than you can remove them from your server.

I think he was being sarcastic.

Dr. McKay 06-17-2013 18:09

Re: [TF2] No Enemies In Spawn
 
Plugin updated to v1.1.0. Changes:
  • Fixed the detection method
  • Updated Updater integration

friagram 06-18-2013 05:28

Re: [TF2] No Enemies In Spawn
 
When i was testing teamplay round win in arena a while back i remember it was firing on stalemate, and stalemate was not firing. Can anyone confirm this? I was under the impression stalemate event never fired or had no information. Though it may just be that in ff2 and vsh there are not real stalemates as it forces a tcpm to spawn and declare a winner.. Though i thought it still sets the winner to team 0 for stalemate...


All times are GMT -4. The time now is 17:30.

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