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

TF2: Change maxium range of a sentry gun


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tauphi
SourceMod Donor
Join Date: Sep 2004
Location: Germany
Old 11-29-2007 , 20:16   TF2: Change maxium range of a sentry gun
Reply With Quote #1

hello,

does someone have any ideas how to change the maxium range of a sentry gun? .... is it generally possible to do it? :-O

regards
andi
__________________
Tauphi is offline
Send a message via ICQ to Tauphi Send a message via Skype™ to Tauphi
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 11-29-2007 , 21:20   Re: TF2: Change maxium range of a sentry gun
Reply With Quote #2

CBaseObject:
-Member: m_viewtarget (offset 1468) (type vector) (bits 0)

Possibly?
bl4nk is offline
BAILOPAN
Join Date: Jan 2004
Old 11-29-2007 , 22:21   Re: TF2: Change maxium range of a sentry gun
Reply With Quote #3

My guess is that it would be hardcoded, though if there's a POV property it might work.
__________________
egg
BAILOPAN is offline
Kaishi
Junior Member
Join Date: Nov 2007
Old 12-11-2007 , 15:29   Re: TF2: Change maxium range of a sentry gun
Reply With Quote #4

There is a hidden cvar
tf_sentrygun_newtarget_dist (default: "200")

I have not had a chance to test what this does though.
Kaishi is offline
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 12-11-2007 , 15:32   Re: TF2: Change maxium range of a sentry gun
Reply With Quote #5

A guess is that the sentry gun will switch a new target when the current target is 200+ away
__________________
I'm a blast from the past!
ferret is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 01-29-2008 , 11:29   Re: TF2: Change maxium range of a sentry gun
Reply With Quote #6

Sentry Guns focus on the closest player to them. We use a strategy in matches to take them out with a medic/soldier ubercharge where the medic and soldier keep running forward to get ahead of each other to keep the SG from pushing the soldier back.

I will give tf_sentrygun_newtarget_dist a go later today.
CrimsonGT is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 01-29-2008 , 12:05   Re: TF2: Change maxium range of a sentry gun
Reply With Quote #7

Didn't do anything.
CrimsonGT is offline
petomatick
Member
Join Date: Sep 2010
Old 09-27-2010 , 12:02   Re: TF2: Change maxium range of a sentry gun
Reply With Quote #8

So is there no way?
petomatick is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 09-27-2010 , 15:35   Re: TF2: Change maxium range of a sentry gun
Reply With Quote #9

It's not possible with a plugin, it's a hard coded value of 1100.0.
__________________
pheadxdll is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 09-28-2010 , 09:14   Re: TF2: Change maxium range of a sentry gun
Reply With Quote #10

VirtualUnprotect it and change.
FaTony 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 08:46.


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