• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Guns, bullets, and ammo

Status
Not open for further replies.
Level 2
Joined
May 31, 2005
Messages
10
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!
 
Level 5
Joined
Nov 15, 2005
Messages
172
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.
 
Level 10
Joined
May 7, 2006
Messages
181
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
 
Level 2
Joined
May 31, 2005
Messages
10
ammo

How do I do the whole variable thing? I SUCK at variables, could someone post a complete list of what to do plz?
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
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
 
Level 1
Joined
Aug 9, 2006
Messages
3
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.
 
Status
Not open for further replies.
Top