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.

Add addon Report IM OUT OF AMMO script!! 0.5
Location
Games : Call to Arms : Addons
Filename
aigivesammotouser.7.zip
Category
Prefabs
Licence
Proprietary
Uploader
Sundiata
Credits
Me, Myself, and I
Added
Size
188.04kb (192,548 bytes)
Downloads
23 (5 today)
MD5 Hash
99478554336b18791b0ee1e295f8076d
Embed Button
Embed Widget
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
Comments
Sundiata Author
Sundiata

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+1 vote
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Report Profile
Icon
Call to Arms
Platforms
Windows
Developer & Publisher
Digitalmindsoft
Engine
Custom
Contact
Send Message
Release date
Game watch
Follow
Purchase
Addon
Browse
Addons
New
Add addon
Report
Report
Share
Community Rating

Average

-

0 votes submitted.

You Say

-

Ratings closed.

Related Games
Call to Arms
Call to Arms Combat Sim
Men of War: Assault Squad 2
Men of War: Assault Squad 2 Real Time Tactics
Related Engines
GEM 2
GEM 2 Commercial
Related Groups
Digitalmindsoft
Digitalmindsoft Developer & Publisher
GEM 2 Editor Fan club
GEM 2 Editor Fan club Hobbies & Interests with 409 members
Tags

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