File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11
11
12
12
#include <stocksoup/memory>
13
13
14
- #define PLUGIN_VERSION " 0.6.0 "
14
+ #define PLUGIN_VERSION " 0.6.1 "
15
15
public Plugin myinfo = {
16
16
name = " TF2 Utils" ,
17
17
author = " nosoop" ,
@@ -88,11 +88,12 @@ public void OnPluginStart() {
88
88
StartPrepSDKCall (SDKCall_Entity );
89
89
PrepSDKCall_SetFromConf (hGameConf , SDKConf_Virtual , " CTFWeaponBase::GetWeaponID()" );
90
90
PrepSDKCall_SetReturnInfo (SDKType_PlainOldData , SDKPass_Plain );
91
- g_SDKCallIsEntityWeapon = EndPrepSDKCall ();
91
+ g_SDKCallWeaponGetID = EndPrepSDKCall ();
92
92
93
93
// networked CUtlVector offset support landed in 1.11; try to locate an offset there first
94
- offs_CTFPlayer_hMyWearables = FindSendPropInfo (" CTFPlayer" , " m_hMyWearables" );
95
- if (offs_CTFPlayer_hMyWearables <= 0 ) {
94
+ offs_CTFPlayer_hMyWearables =
95
+ view_as <Address >(FindSendPropInfo (" CTFPlayer" , " m_hMyWearables" ));
96
+ if (offs_CTFPlayer_hMyWearables <= Address_Null ) {
96
97
offs_CTFPlayer_hMyWearables = GameConfGetAddressOffset (hGameConf ,
97
98
" CTFPlayer::m_hMyWearables" );
98
99
}
You can’t perform that action at this time.
0 commit comments