Jump to content

How to use instance Variables?


Arkzpillion

4 posts in this topic

Recommended Posts

Posted

Hello i saw shmoo instance variables tutorial but i am confused little bit please help me clear my doubts 

1. Which mshook do i need to use ? i saw there are different types of mshooks 

2. Do i need to hook the class? in which instance variables contains like,  i want to hack firerate and firerate instance variables is under a certain class if not then what exactly i need to hook

3. How do i add a switch for instance variables so user can turn it on and off in mod menu i am using shmoos mod menu as i stated above

 

Thank you any help will be apperciated :) 

Posted
5 minutes ago, Arkzpillion said:

Hello i saw shmoo instance variables tutorial but i am confused little bit please help me clear my doubts 

1. Which mshook do i need to use ? i saw there are different types of mshooks 

2. Do i need to hook the class? in which instance variables contains like,  i want to hack firerate and firerate instance variables is under a certain class if not then what exactly i need to hook

3. How do i add a switch for instance variables so user can turn it on and off in mod menu i am using shmoos mod menu as i stated above

 

Thank you any help will be apperciated :) 

Yes you need to hook, how would your code know what to modify?

Use mshookfunction to hook duh

add an if statement with the switch before the code

 

 

Posted

1. There is only ONE MSHook.

2. You need to hook a function where the instance variable can be accessed from:

In the class where you have the instance variable, you can check if a Update function exists, this one is called every frame, which is efficient for hacking.

Hook that.

 

3. Just add a empty switch. He has a sample.xm, so check that.

Archived

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

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines