Raised This Month: $ Target: $400
 0% 

[TF2] Spy No Disguise No Cloak


Post New Thread Reply   
 
Thread Tools Display Modes
7106
Senior Member
Join Date: Jun 2013
Old 05-09-2014 , 04:55   Re: [TF2] Spy No Disguise No Cloak
Reply With Quote #11

Quote:
Originally Posted by Powerlord View Post
This is totally untested, but you can use my Weapon Restrictions Plugin with this configuration file... put it in addons/sourcemod/configs/tf2-weapon-restrictions and then run it by adding this to server.cfg:

Code:
weaponrestrict spyrestrictions
Note: This doesn't block backstabs.

(Side note: I haven't tested blacklists yet, only whitelists... and this config is a blacklist.)

I know you messaged me about that plugin a while back and I had forgotten about it... whoops.

Edit: In case you're wondering, this plugin does what friagram suggested: uses TF2Items to block the player from ever being given the spy cloaking devices or disguise kit.
thx but this plugin block engineer's buildings, too
is there anyway allow buildings and block disguise and cloak and backstab

Last edited by 7106; 05-09-2014 at 08:23.
7106 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 05-09-2014 , 11:20   Re: [TF2] Spy No Disguise No Cloak
Reply With Quote #12

Quote:
Originally Posted by 7106 View Post
there's no change on backstab damage
plz, help me!
The code is suppose to make backstabs do 0 damage.
WildCard65 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-09-2014 , 11:35   Re: [TF2] Spy No Disguise No Cloak
Reply With Quote #13

Quote:
Originally Posted by 7106 View Post
thx but this plugin block engineer's buildings, too
is there anyway allow buildings and block disguise and cloak and backstab
I can't tell if you actually tried that or just assumed it'd block buildings because it has the ability to.

It only blocks buildings if allow_buildings is set to 0. Any other value should allow them.

(Of course, you'd still need a separate plugin for backstabs.)
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 05-09-2014 , 11:46   Re: [TF2] Spy No Disguise No Cloak
Reply With Quote #14

Quote:
Originally Posted by Powerlord View Post
I can't tell if you actually tried that or just assumed it'd block buildings because it has the ability to.

It only blocks buildings if allow_buildings is set to 0. Any other value should allow them.

(Of course, you'd still need a separate plugin for backstabs.)
the plugin I wrote up for the guy does this:
If the condition for cloaking comes up, it's immediately removed.
If the condition for being disguised comes up, it's immediately removed.
And the plugin also makes backstabs do 0 damage(via skdHooks and checking if damage is TF_CUSTOM_BACKSTAB and returning Plugin_Changed)
WildCard65 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-09-2014 , 11:57   Re: [TF2] Spy No Disguise No Cloak
Reply With Quote #15

Quote:
Originally Posted by WildCard65 View Post
the plugin I wrote up for the guy does this:
If the condition for cloaking comes up, it's immediately removed.
If the condition for being disguised comes up, it's immediately removed.
And the plugin also makes backstabs do 0 damage(via skdHooks and checking if damage is TF_CUSTOM_BACKSTAB and returning Plugin_Changed)
I know what your plugin does as I actually checked the code for it. I just think removing the disguise kit and cloaking devices is a better solution to those.

Incidentally, blocking the backstab damage and/or modifying it *should* work as we already do stuff like that in Vs. Saxton Hale / Freak Fortress 2.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 05-09-2014 , 12:00   Re: [TF2] Spy No Disguise No Cloak
Reply With Quote #16

Quote:
Originally Posted by Powerlord View Post
I know what your plugin does as I actually checked the code for it. I just think removing the disguise kit and cloaking devices is a better solution to those.

Incidentally, blocking the backstab damage and/or modifying it *should* work as we already do stuff like that in Vs. Saxton Hale / Freak Fortress 2.
I decided to leave the kit and watches just to leave the players very confused.
WildCard65 is offline
7106
Senior Member
Join Date: Jun 2013
Old 05-09-2014 , 23:30   Re: [TF2] Spy No Disguise No Cloak
Reply With Quote #17

maybe weapon restrictions plugin automacally block buildings
so i put below cvars in server.cfg
weaponrestrict ""
weaponrestrict "spyrestrctions"
anyway thx guys!

Last edited by 7106; 05-09-2014 at 23:42.
7106 is offline
Reply



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 04:58.


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