Forum Jump :

Author Message


Posts: 1189
Rank:


Level: Member

Country: tr
Location:
Occupation: Computer Science student
Age: 22
In-game name: Wak

 
#183825 Posted at 2015-11-08 09:19        
     
Your addon is fairly simple, but you'll still need the arma 3 tool set. You should have two files in a folder called config.cpp and init.sqf (the name of the script really doesn't matter). For this example, I'm going to name the folder fatigue_adjusment, if you want to change it, you should change any text in the config.cpp that says fatigue_adjusment with the name of your choice. The folder will become a pbo later, which you'll put under
Arma 3\@OHTCfatigueMultiplier\AddOns\fatigue_adjusment.pbo

Put this c++ code inside the config.cpp and edit it if you want:

Since we're calling it as a function, we'll have to spawn the code inside the init.sqf, look at my modifications. Also since this code will run at postInit, I took the freedom of removing the unnecessary waitUntils. Also there is a error at line 8, but I didn't touch that:

This post was edited by 654wak654 (2015-11-08 11:09, ago)

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage