Jump to content

SF TH Set / Change Weapon Ammo 7-3-20


XorEax

Recommended Posts

  • Administrator

Code:

struct CActors
{
	char ___spacer00[2136];
    CSkeleton* pSkeleton; // 0x858
	
	char ___spacer02[1958176];
	DWORD WeaponID1;
	DWORD WeaponType1; // Primary = 4, Secondary = 1, Knife = 0, Grenade = 7, ..
	DWORD WeaponID2;
	DWORD WeaponType2;
	BYTE WeaponUnk1;
	BYTE WeaponUnk2;
	BYTE WeaponHSlot1; // Primary = Slot 0, Secondary = Slot 1, Melee = Slot 2, Throw = Slot 3
	BYTE WeaponVSlot1; // Slot 0 = Grenade, Slot 1 = FlashBang, Slot 2 = Smoke
	BYTE WeaponHSlot2; 
	BYTE WeaponVSlot2;
	
	//...
	DWORD SetWeaponAmmo(char HSlot, int weaponid) {
		return *(PDWORD)(0x19284 * HSlot + DWORD(this) + 0x85C) = weaponid;
	}
};

 

Link to comment
Share on other sites

  • Kaiii locked this topic

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.

 

AdBlock Extension Detected!

depositphotos_220325684-stock-illustration-hand-holding-mobile-with-ad.jpg

 

Our website is made possible by displaying online Advertisements to our members.

Please disable AdBlock browser Extension first, to be able to use our Community.

You won't be able to access this page.

I've Disabled AdBlock