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

[TF2] Set Disguising Speed?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 12-18-2016 , 12:12   [TF2] Set Disguising Speed?
Reply With Quote #1

Any known methods for setting the disguising speed for the spy?

"disguise speed penalty" attribute doesn't seem to change anything.

Cheers.
Drixevel is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 12-18-2016 , 12:30   Re: [TF2] Set Disguising Speed?
Reply With Quote #2

"disguise_speed_penalty" is not implemented in the code, so no hope to use it. I tried to find where where the disguise delay is setup, nothing so far.
__________________
Benoist3012 is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 12-18-2016 , 14:20   Re: [TF2] Set Disguising Speed?
Reply With Quote #3

Quote:
Originally Posted by Benoist3012 View Post
"disguise_speed_penalty" is not implemented in the code, so no hope to use it. I tried to find where where the disguise delay is setup, nothing so far.
I found a method for what I was trying to do and it seems to work... OKAY. Sadly, I don't think there's a method to setting the disguise speed for a spy, least from what I can tell. (I'm probably wrong)
Drixevel is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 12-18-2016 , 20:09   Re: [TF2] Set Disguising Speed?
Reply With Quote #4

there should be a netprop for disguise time, add the cond a d then set it to gametime+ whatever toskip ahead.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 12-19-2016 , 05:22   Re: [TF2] Set Disguising Speed?
Reply With Quote #5

I didn't see such netprops, at least from their name, those seem to be pretty close of what we want:
Code:
SendPropTime(byte_1608C00, (int)"m_flStealthNoAttackExpire", 696, 4);
SendPropTime(byte_1608C50, (int)"m_flStealthNextChangeTime", 700, 4);
__________________
Benoist3012 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-19-2016 , 06:08   Re: [TF2] Set Disguising Speed?
Reply With Quote #6

The disguise complete time isn't stored in a netprop directly, but you can currently find it 4 bytes after m_unTauntSourceItemID_High on the player. You can find this offset by reverse-engineering CTFPlayerShared::Disguise. The logic has changed quite a lot since 2007, but the general gist of it is still there.
__________________

Last edited by asherkin; 12-19-2016 at 06:08.
asherkin 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 02:17.


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