Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1 from LWSS/master
Browse files Browse the repository at this point in the history
update cswpn vtable again
  • Loading branch information
Electric26 authored Sep 28, 2019
2 parents 9e02d34 + 7fae0be commit 28027f9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/SDK/IClientEntity.h
Original file line number Diff line number Diff line change
Expand Up @@ -720,27 +720,27 @@ class C_BaseCombatWeapon: public C_BaseAttributableItem

void DrawCrosshair() { // xref: CHudCrosshair
typedef void (* oDrawCrosshair)( void* );
return getvfunc<oDrawCrosshair>( this, 467 )( this );
return getvfunc<oDrawCrosshair>( this, 468 )( this );
}

CCSWeaponInfo* GetCSWpnData() { // "script file not found"
typedef CCSWeaponInfo* (* oGetCSWpnData)( void* );
return getvfunc<oGetCSWpnData>( this, 523 )( this );
return getvfunc<oGetCSWpnData>( this, 524 )( this );
}

float GetSpread() {
typedef float (* oGetSpread)( void* );
return getvfunc<oGetSpread>( this, 515 )( this );
return getvfunc<oGetSpread>( this, 516 )( this );
}

float GetInaccuracy() {
typedef float (* oGetInaccuracy)( void* );
return getvfunc<oGetInaccuracy>( this, 545 )( this );
return getvfunc<oGetInaccuracy>( this, 546 )( this );
}

void UpdateAccuracyPenalty() {
typedef void (* oUpdateAccuracyPenalty)( void* );
return getvfunc<oUpdateAccuracyPenalty>( this, 546 )( this );
return getvfunc<oUpdateAccuracyPenalty>( this, 547 )( this );
}
};

Expand Down

0 comments on commit 28027f9

Please sign in to comment.