Raised This Month: $12 Target: $400
 3% 

[TF2] Dealing with C&D spies in sudden death


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
martellus
Member
Join Date: Jan 2013
Old 01-10-2015 , 20:41   [TF2] Dealing with C&D spies in sudden death
Reply With Quote #1

I run sudden death after every map on my server which is all good fun and whatnot but we always have the persisting problem of players who refuse to lose by hiding as cloaked spies in some random corner of the map, or just afk players in their own spawn, preventing a win or loss and making everyone else wait during the countdown.


Could a plugin be made to detect and auto slay (perhaps with a message beforehand) cloaked spies camping during sudden death or afk players? Or toggle a vote for slaying the last enemy player?

Last edited by martellus; 01-10-2015 at 20:41. Reason: fixed error
martellus is offline
ClassicGuzzi
Veteran Member
Join Date: Oct 2013
Location: Argentina
Old 01-10-2015 , 23:30   Re: [TF2] Dealing with C&D spies in sudden death
Reply With Quote #2

Maybe this could help (for the spy problem) it activates the outline on the last player (on sudden death only).
Attached Files
File Type: sp Get Plugin or Get Source (outlinelast.sp - 222 views - 1.8 KB)

Last edited by ClassicGuzzi; 01-10-2015 at 23:30.
ClassicGuzzi is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 01-11-2015 , 01:23   Re: [TF2] Dealing with C&D spies in sudden death
Reply With Quote #3

Outlines don't work on cloaked spies for the enemy team, iirc.
__________________
Chdata is offline
ClassicGuzzi
Veteran Member
Join Date: Oct 2013
Location: Argentina
Old 01-11-2015 , 03:02   Re: [TF2] Dealing with C&D spies in sudden death
Reply With Quote #4

Quote:
Originally Posted by Chdata View Post
Outlines don't work on cloaked spies for the enemy team, iirc.
Oh... okay ;_;
Then try this one, it will disable the C&D on the last player if he is a spy, and will inform it to the player.
Attached Files
File Type: sp Get Plugin or Get Source (remove_cd.sp - 220 views - 2.5 KB)
ClassicGuzzi is offline
martellus
Member
Join Date: Jan 2013
Old 01-14-2015 , 01:26   Re: [TF2] Dealing with C&D spies in sudden death
Reply With Quote #5

Sorry for late reply

Doesn't seem to work unfortunately, and I don't see any errors in console
martellus is offline
ClassicGuzzi
Veteran Member
Join Date: Oct 2013
Location: Argentina
Old 01-14-2015 , 01:53   Re: [TF2] Dealing with C&D spies in sudden death
Reply With Quote #6

Quote:
Originally Posted by martellus View Post
Sorry for late reply

Doesn't seem to work unfortunately, and I don't see any errors in console
My fault, I didn't test it, I'll try it in my server until it works.

Edit: Oh ok the watch's slot is TFWeaponSlot_Building, not TFWeaponSlot_PDA
I improved the code a little bit and tried the remove watch part with a command, this should work.
Attached Files
File Type: sp Get Plugin or Get Source (remove_cd.sp - 190 views - 2.8 KB)

Last edited by ClassicGuzzi; 01-14-2015 at 02:17.
ClassicGuzzi is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 01-14-2015 , 02:36   Re: [TF2] Dealing with C&D spies in sudden death
Reply With Quote #7

Yeah, this is helpful:
Code:
// TF2 Weapon Loadout Slots
enum
{
    TFWeaponSlot_Watch = 4,
    TFWeaponSlot_DisguiseKit = 5,
    TFWeaponSlot_DestroyKit = 5,
}
Actually it might be inaccurate?
__________________

Last edited by Chdata; 01-14-2015 at 02:37.
Chdata is offline
ClassicGuzzi
Veteran Member
Join Date: Oct 2013
Location: Argentina
Old 01-14-2015 , 04:39   Re: [TF2] Dealing with C&D spies in sudden death
Reply With Quote #8

Quote:
Originally Posted by Chdata View Post
Yeah, this is helpful:
Code:
// TF2 Weapon Loadout Slots
enum
{
    TFWeaponSlot_Watch = 4,
    TFWeaponSlot_DisguiseKit = 5,
    TFWeaponSlot_DestroyKit = 5,
}
Actually it might be inaccurate?
I think that the destroy kit is number 4
https://wiki.alliedmods.net/Team_For...A_.5BSlot_3.5D
ClassicGuzzi is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-15-2015 , 11:21   Re: [TF2] Dealing with C&D spies in sudden death
Reply With Quote #9

Quote:
Originally Posted by ClassicGuzzi View Post
I think that the destroy kit is number 4
https://wiki.alliedmods.net/Team_For...A_.5BSlot_3.5D
Incidentally, this kind of thing is why the Item Definition Indexes page has the slot numbers.

Edit: The slot numbers on that page were derived from testing.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 01-15-2015 at 11:29.
Powerlord is offline
martellus
Member
Join Date: Jan 2013
Old 01-16-2015 , 02:41   Re: [TF2] Dealing with C&D spies in sudden death
Reply With Quote #10

Sorry to continue being a bother, it works great, but one problem unrelated to the plugin itself, I use this plugin:

https://forums.alliedmods.net/showthread.php?p=1273906

to let players switch loadouts ingame, but you can use this to get around the sudden death restriction. Could there be a way to counteract this?
martellus 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 07:28.


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