Call to Arms offers an innovative new look into modern era combat. Initially offering two playable factions with realistically modeled vehicles and heavy weaponry, as well as dozens of firearms and customizations. Command your troops to victory or fight by yourself in the 3rd person action mode.

Description

The Im out of ammo script will replenish the ammo of user controlled infantry units once they run out of ammo and are near another unit. I can't stop the enemy from throwing you ammo supplies sadly. So your immersion is going to take a hit, just to tell you up front lol.

Preview
IM OUT OF AMMO script!! 0.5
Post comment Comments
Morpheus__ Author
Morpheus__ - - 605 comments

Installation: move the resource pak file and the engine pak file that is for your game to the resource folder in your mod.

To fix the explosion bug

The only thing you have to do is change the blast_hit function in human.inc so it looks like this:

{on blast_hit
{if min_energy 0.01

;{existing code}

}

}

Let me know if it works for your game!

This edits the skirmish.inc file in interaction_entity, so be sure to move the changes over if you like the script.

0.2 edited skirmish.inc: stops "empty" from showing when overlapping a dead unit.

0.3 fixed units who didn't start with a weapon.

Now anyone who doesn't have a weapon will not repeatedly ask for ammo, until they get a weapon.

0.4 fixed bazookas from getting too much ammo
0.5 you must have a weapon inorder for the ammo request to be looped

Reply Good karma+2 votes
HuntleyGopnik
HuntleyGopnik - - 43 comments

Hi!Can you create some scripts for my mod? $$

Reply Good karma Bad karma+2 votes
Guest
Guest - - 688,627 comments

how to install this mod ? please.

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account:

Tags

IM OUT OF AMMO script!! 0.5 has not been tagged yet.