Staredit Network

Staredit Network -> UMS Assistance -> Ammo System With Weapon Chang
Report, edit, etc...Posted by Zombie on 2006-02-01 at 13:21:23
How can i make it so i have a weapon change system (Dropships) with a ammo? If have like a knife as a weapon and a pistole. The player kills some one with the pistole and of course the ammo system would take away a bullet. But if he switches to knife and kills some one wont it still reduce ammo?
Report, edit, etc...Posted by flipmonkey on 2006-02-01 at 13:27:47

From this tutorial http://www.staredit.net/index.php?tutorial=39 you should be able to get something out of it. If i wanted the marine to use the ammo system add a condtion in one of the triggers say if u bring or sumthing to a location. So every time a marine is out the trigger will be active because the trigger requires that unit to be out.
Report, edit, etc...Posted by Joshgt2 on 2006-02-01 at 15:37:10
If that doesn't help you then there is a topic in the Concepts catagory when LegacyWeapon I believe made something on this but it was really nice and worked very well. I am sorry I don't have a link to it but I know it is in there somewhere...
Report, edit, etc...Posted by Zombie on 2006-02-01 at 16:54:19
None of the above is helpfull to me tongue.gif. Inless im missing some thing. Anyone wanna help out?
Report, edit, etc...Posted by M_s4 on 2006-02-01 at 17:33:01
flipmonkey, he knows how to make an ammo system, I think what he's asking is how you can have multiple sets of ammo. josght, for the perfect ammo system, that's irrelevant (but he will eventually need to learn if there are some monsters that don't die in one hit, but that's not what he asked right now).

You should have two death counters for EACH DIFFERENT weapon. One for clips. One for ammo. So when the dude picks out a different weapon, you have to reset minerals and gas so each set of ammo is independant from each other. You will have some lag time in transitions unless you create mineral/gas replacements for each amount which will take up a lot of trigs. Or you can make it so only gas clips are remaining. So if you have a little left of minerals, those get thrown out while clips stay.

You can bug up the system a little by changing weapons while reloading, but I don't think the results will be too catastrophic.

If you are only going to use a gun and a knife, just have an extra condition that says Knife Switch is cleared for the minusing ammo trigger. That way, when the dude pulls out the knife set the switch. When he puts it back and starts using the gun again, clear the switch.
Report, edit, etc...Posted by Mini Moose 2707 on 2006-02-01 at 20:30:56
Will it? Won't it? You trigger the map, so it does what you tell it.

ยป Topic Locked
Next Page (1)