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

[TF2] Sentry Immunity


Post New Thread Reply   
 
Thread Tools Display Modes
Tylerst
Veteran Member
Join Date: Oct 2010
Old 04-24-2011 , 03:04   Re: [TF2] Sentry Immunity
Reply With Quote #21

Quote:
Originally Posted by clutchh View Post
Can you add a cvar that lets us leave immunity on for all players at all times?
If you want immunity for all players at all times, use the game's built in cvar:

sm_cvar tf_sentrygun_notarget 1

This was made specifically for specifying targets as opposed to everyone.


Now..if you want immunity for all ADMINS only at all times that's a different story. I can do that, but no reason to add something that can already be done.

Last edited by Tylerst; 04-24-2011 at 03:07.
Tylerst is offline
clutchh
SourceMod Donor
Join Date: Feb 2008
Old 04-24-2011 , 05:43   Re: [TF2] Sentry Immunity
Reply With Quote #22

That's true, but then I can't target them manually with the wrangler, which is what I want. :/
clutchh is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 04-25-2011 , 02:59   Re: [TF2] Sentry Immunity
Reply With Quote #23

Quote:
Originally Posted by clutchh View Post
That's true, but then I can't target them manually with the wrangler, which is what I want. :/
Fair enough, plugin updated.

I assumed you just wanted to make sentrys not shoot at all, my bad.

New cvar: sm_sentryimmunity_all 1
Tylerst is offline
clutchh
SourceMod Donor
Join Date: Feb 2008
Old 04-25-2011 , 18:14   Re: [TF2] Sentry Immunity
Reply With Quote #24

Hmm, it looks like the latest version has disabled all sappers. While the plugin is loaded sappers disappear from the spies...
clutchh is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 04-25-2011 , 22:13   Re: [TF2] Sentry Immunity
Reply With Quote #25

Quote:
Originally Posted by clutchh View Post
Hmm, it looks like the latest version has disabled all sappers. While the plugin is loaded sappers disappear from the spies...

I have messed with this for about 30 minutes on my server and couldnt get sappers to stop working with any combonation of the cvar/normal command/map change/deaths.

Perhaps something else is conflicting/causing the problem?
Tylerst is offline
clutchh
SourceMod Donor
Join Date: Feb 2008
Old 04-26-2011 , 14:02   Re: [TF2] Sentry Immunity
Reply With Quote #26

Damn, that's strange. I haven't done anything to the server lately besides loading this up. Not sure which other plugin would cause this error. :/
clutchh is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 05-16-2011 , 04:24   Re: [TF2] Sentry Immunity
Reply With Quote #27

You need to #include <sdktools> if you're using SetEntityFlags, otherwise the plugin won't compile.
__________________
DarthNinja is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 05-16-2011 , 04:52   Re: [TF2] Sentry Immunity
Reply With Quote #28

Quote:
Originally Posted by DarthNinja View Post
You need to #include <sdktools> if you're using SetEntityFlags, otherwise the plugin won't compile.
GetEntityFlags and SetEntityFlags are within the entity_prop_stocks.inc, which is included in sourcemod.inc

None of what I use should need sdktools...

In fact, if required including sdktools, I don't think it would compile on the forum, either...

Edit: I even checked the latest 1.3.8 and 1.4 snapshots in case it changed on them but sourcmod.inc still has #include <entity_prop_stocks> at the bottom in each one.

Last edited by Tylerst; 05-16-2011 at 04:59.
Tylerst is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 05-16-2011 , 05:39   Re: [TF2] Sentry Immunity
Reply With Quote #29

Yeah, I just checked, Get/SetEntityFlags was newly added and I didn't yet have it on my local compiler.

Plugins that include sdktools will compile on the forums though fyi.
__________________
DarthNinja is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 05-16-2011 , 06:33   Re: [TF2] Sentry Immunity
Reply With Quote #30

Quote:
Originally Posted by DarthNinja View Post
Plugins that include sdktools will compile on the forums though fyi.
I was meaning if my plugin had used an sdktools function and I hadn't included it, it wouldn't compile due to error. Sorry, poor wording on my part.

Random Example:
Attached Files
File Type: sp Get Plugin or Get Source (Random Plugin.sp - 125 views - 162 Bytes)
Tylerst 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 03:41.


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