Page MenuHomeFeedback Tracker

Hacks, Infi mages
New, WishlistPublic


Here is the info i obtained from my research on the mater.


Creating Hacked/Infi Mags
To create hacked / Infi-mags, you have to either call the function itself, or remove the
isServerOwner check from the function. Also the funny thing about this script, is that it is not in any other arma game, and is very visible in the dayz source code.

In both methods, you will need to find the script function first, seen in this image:

Method 1, Using it as a Script.

  1. Hook the function and remove the isServerOwner check, just hooking it will not work and will make this only local. Setting yourself as the serverowner

will block all client->server messages. This is because you are setting yourself as the server so your client is sending the messages to yourself.

Here is the isServerCheck in this image:

  1. Go to the following PBO: weapon_magazines.pbo

and set the max amount of ammo each type of mag may hold

  1. Go in game and execute setMagazineAmmo 1, which will set the mag to the max value, if you do not follow step 2, the mag will just be refiled. If you are a scripts, just create a script to set all mags around you to max, i do know scripting so i do not do this method.

Method 2, Calling the actual function through memory

  1. You will have to find the actual function in IDA, which will be under __RTDynamicCast which

is way down within the script function. As this is the same as the DayZ 0.45 Source code.

Here is an image of the actual function setting the mag's ammo:

  1. You will need to go within the function and grab the arguments

This is an image of the function decompiled in IDA

  1. Next you will need to create your function, i just did:


    // 0x6CABB0 is the address of the actual function in the immage above
    class Magazine {
    	void setAmmo (float amount) {
    		typedef void(__thiscall *tSetMagAmmo)(Magazine*, float);
    		tSetMagAmmo oSetMagAmmo = (tFunction)(0x6CABB0); 
    		oSetMagAmmo(this, amount);
  1. You will need to write a way to grab your current magazine, or make it find all the magazines in your area.

usage of that class

    Magazine* myMag = CameraOn()->GetCurrentMag();

And thats how you make hacked mags in DayZ




Legacy ID
Additional Information

here is our gallery thread we did
I recorded it and didnt realize what was going on, but i did remember seeing a mag offset

It is very much real.

Event Timeline

FIRMSneakydude edited Additional Information. (Show Details)Nov 30 2015, 5:23 PM
FIRMSneakydude set Category to category:glitchabuse.
FIRMSneakydude set Reproducibility to Always.
FIRMSneakydude set Severity to None.
FIRMSneakydude set Resolution to Open.
FIRMSneakydude set Legacy ID to 711312299.May 9 2016, 12:09 AM