[TF2] Sentry Immunity
1 Attachment(s)
Sentry Immunity
Fairly simple plugin that I was suprised didn't exist already(or at least I couldn't find one). Allows you to set a target(s) to be invisible to sentry targetting(You can still be manually hit with the wrangler, obviously). Commands: sm_sentryimmunity <target> <0/1> -Slay Flag Examples: sm_sentryimmunity Thetarget 1 - give Thetarget immunity sm_sentryimmunity @me 1 - give yourself immunity sm_sentryimmunity @humans 1 - give humans immunity sm_sentryimmunity @bots 1 - give bots immunity sm_sentryimmunity @red 1 - give red team immunity sm_sentryimmunity @blue 1 - give blue team immunity sm_sentryimmunity @all 1 - give everyone immunity sm_sentryimmunity @!me 0 - remove immunity for everyone but yourself CVARs: sm_sentryimmunity_version "1.1.1" sm_sentryimmunity_chat "1" - Enable/Disable(1/0) Showing Sentry Immunity changes in chat sm_sentryimmunity_log "1"- Enable/Disable(1/0) Logging of Sentry Immunity changes sm_sentryimmunity_all "0" - Enable/Disable(1/0) Sentry Immunity for everyone Changelog: Code:
Version 1.0.0 - February 23, 2011 |
Re: [TF2] Sentry Immunity
HA! Awesome. I was just working on something like this today. I'll give it a test this weekend.
|
Re: [TF2] Sentry Immunity
amazing! it works just great!
|
Re: [TF2] Sentry Immunity
Funny story, I actually created this with making people invisible to bots in mind, but apparently the notarget flag doesn't affect the tf bots.
So far only using the nb_blind 1 cvar makes bots unable to see people, but of course thats everyone, not specific targets. Meh, back to square one on that end. Well , got this much usage out of it anyway, so it wasn't a waste of effort. :lol: |
Re: [TF2] Sentry Immunity
Looks cool so i decided to look at the source, and what i notice is this
PHP Code:
i think this is what you should be using PHP Code:
|
Re: [TF2] Sentry Immunity
Quote:
A fair suggestion, but out of curiousity, why does it matter? Also, if I do use bitwise operators, shouldn't I use ^ instead of &~ ? Just curious, If +- are going to cause a problem I'll change it but I'd like to know why it's a problem xD |
Re: [TF2] Sentry Immunity
I'm a little surprised. My understanding was that this feature was not this easily implemented (e.g. setting a single entity flag). The only other implementation I've seen was to spawn an invisible, non-solid pillar prop around a player, which is clearly more complex. Does this affect other aspects of TF2 gameplay?
Finally, is there a name / constant associated with bit (1 << 16) of m_fFlags? |
Re: [TF2] Sentry Immunity
Quote:
(1<<16) is the FL_NOTARGET flag, just many of the flags shifted in ep2v. |
Re: [TF2] Sentry Immunity
PHP Code:
and should use FL_NOTARGET anyway..? |
Re: [TF2] Sentry Immunity
Quote:
For 2009/ep2v/orangeboxvalve, you either need to hardcode it as (1<<16) or undefine and redefine it in your code. |
All times are GMT -4. The time now is 01:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.