Warcraft III resources & community, 2003–2006 · archived

Guns, bullets, and ammo

7 posts
#1

Guns, bullets, and ammo

I need to know how to do something. I want to make a map the uses guns. Now I want the player to have to press a button and click to fire the weapon. I then want a type of bullet to come out at certain speeds depending on the weapon. Now I also want the enemy to only take damage if they are actually hit by this bullet. Along with that I need an ammo system that can be adjusted so different weapons can cause different amounts of damage and have different ranges. I also would like an ammo system that is different for each weapon. Now I am requesting someone do this for me and send it to me, I will of course give them MEGA props in my map. OR, just tell me, in detail, how to do this, or at least some of it. PLEASE help!
#2

Put this is the requests section.

I would say that you should put this in the requests section. I was making a similar map to what you are probably making before. I TRIED using shockwave and changing buffs and adding some triggers.. messing with the models, but it didn't work. If you are to make a move like fire or something-- you're probably going to need to make MASS trigs. Anyways, good luck-- if you put this is the request section it will be answered much faster.
#3
for the weapons u must base abilities on storm bolt. also turn 'homing missle' off so the missles dont follow the enemy and can miss them. can u be alittle more detailed with the ammo system? i dont know what u want to do with it at all
#4
For the ammo you could use variables, evry clip adds 10 to the ammo variable, then every shot takes 1 away from the variable. If variable = to 0 then when they try to cast it again it wont work. Simple rly :lol:
Are you trying to make it in fps format, like u see what the model sees?
good lukc, all the ebst n hope it works
#5

ammo

How do I do the whole variable thing? I SUCK at variables, could someone post a complete list of what to do plz?
#6
variables save stuff. to let it have less points less u use 'airthemathic' and then u can do 'integer type variable = (integertype variable - 1)'

now everytime u fire (BEGINS the effect of an ability) let it check if the variable is 0 or not. if it is order th casting unit to stop
#7
I know this isn't quite what you're looking for with the ammo system, but it's simple and not as likely to break. You could have your unit's mana regen set to 0 and make each shot cost 1 mana, then use an edited mana potion when you want to 'reload.' I've never been good at variables, so that's what I've been using when I do stuff with archers or gunmen as the main focus of a map.

Another thing you could try that I haven't yet tested (so not sure if it'll even work) is having the ability based on Carrion Swarm and make it so that it only affects one target and has a very small aoe and a long range. As far as I know, this can be dodged, but the main reason I like it is that you can just shoot in a direction and don't actually have to click on a target. I don't know how well this works though. You can change the range of this by just having different items (the guns) each have a different version of this ability.