Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Siphonhale

Increase Weapon Hit Damage w/o addon?

Recommended Posts

All,

For a mission I'm working on, I need to make missiles do 3-4 times their normal damage. Is there a way to accomplish this without an addon that modifies core game data? Hope this is a quick question.

S

Share this post


Link to post
Share on other sites

Hmm, a bit tricky I guess.

My first idea is to let every unit run a script which checks if there is a missile close by, then computes the damage difference and factorizes this by 3 or 4.

Could look like:

_unit = _this select 0;

While{alive _unit} do {
  sleep 0.12;
  _missile = (getPos _unit nearObjects ["<missile-type>",10]) select 0;
  if(not isNull _missile) then{
    _dmge = getDammage _unit;
    WaitUntil{isNull _missile};
    _dmge = getDammage _unit - _dmge;
    _unit setDamage (getDammage _unit) + _dmge*3;
  };
};

Now write

init = [this] execVM "scriptabove.sqf"

into the init line of every unit.

Of course this have to be checked for every type of missile, but that is the only way for me without changing any hardcoded stuff. IF this is really working of course :cool:

But could be an approach.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×