Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Ammunition System
Ammunition System
Mar 25 2008, 10:06 pm
By: Cragler  

Mar 25 2008, 10:06 pm Cragler Post #1



I read the Ammunition Made Hard, and it teaches you how to loose 2 bullets when shooting twice on the same unit. I was just wondering.. is there any possible way to play a gunfire sound twice when shooting a unit that needs to get shot twice?



None.

Mar 25 2008, 10:17 pm UNORiGiNAL Post #2



I don't know any real solution to your problem but try to time the intervals between shots?



None.

Mar 25 2008, 10:27 pm payne Post #3

:payne:

Hey, just try the vHP since many of the Ammunition systems are for 1 hit killed units:
vHP is about to use zerg burrowable unit under a certain unit to permit the triggers to "detect" it HP... so each time it decreases, you can play the sound of the shot :D



None.

Mar 25 2008, 10:52 pm NudeRaider Post #4

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

You can play the sound twice when the unit dies, but not 1 sound when you fire the first shot, and a second sound when you kill it, because there's no way to detect a unit firing (without EUD's).
So yes, I'd recommend vHP too.




Mar 26 2008, 12:05 am payne Post #5

:payne:

Yay! I rock! :D
OMG, YOU HAVE LIKE 1,3K MINERALS!! GIMME SOME!! :O



None.

Mar 26 2008, 5:14 am Cragler Post #6



mmkay..



None.

Mar 26 2008, 11:56 am NudeRaider Post #7

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Hm but you could make a system that 'estimates' the first shot.

1st tier: simply make a location as large as the units' horzizontal/vertical (aka not diagonal) fire arc.
When an enemy comes into range it's likely that your unit begins shooting. => play wav

2nd tier: This will fail when the enemy comes not directly from above, below, left or right. (Shot sound too early)
To counter that make a large mobile grid around your unit and detect the direction. If it comes in from diagonal direction use a smaller location for the firing arc.

3rd tier: This will still fail when your unit moves instead of shooting. So refine the system by making a move detection with a 1x1 pixel location: Center the 1x1 location on your unit. Let a dc count to lets say 6 and if it hasn't left the 1x1 location yet, it hasn't moved and you can play the sound.

4th tier: This system may produce inaccurate results when multiple enemies are closing in. I have no general method to present which would counter that. It depends on your map, too. So if you decide to make a 'shot estimation system' maybe we can work out 4th tier later.




Mar 28 2008, 10:32 am Cragler Post #8



Wait.. sorry.. explain to me whwat vHP was again.



None.

Mar 28 2008, 10:46 am NudeRaider Post #9

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Basically you make the main unit invincible, constantly move like 20 zerglings under the unit, each representing 5% hp. When all lings died kill the main unit.

Tutorial on vHP
Another Tutorial on vHP




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-9-25. : 12:00 am]
Oh_Man -- he hasnt won a single game so far this is hilarious
[2026-9-24. : 11:41 pm]
Oh_Man -- new arty username Rage Against The Machine
[2026-9-24. : 10:14 pm]
Oh_Man -- https://m.youtube.com/watch?v=KPXri8q9ZBs artys vsing the bot now
[2026-9-24. : 8:12 pm]
Ultraviolet -- do you even lift bro?
[2026-9-23. : 5:21 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: NudeRaider yeh thts straight up cheating
the mutas yes, the wraiths probably not. Have you even watched the video? ;)
[2026-9-23. : 12:56 pm]
Oh_Man -- NudeRaider
NudeRaider shouted: Oh_Man Artosis hasn't caught on how devastating the perfect focus fire is. With the mutas he was like "the Mutas always seem to have less hp than against a human". But he didn't notice that the flock he had selected always just had one muta that was hurt. Same with the wraiths here. He's talking about how valks+wraith is gonna destroy Pluto's valks, then 5s later he's dumbfounded the human player's air is just gone and he never figured out why. And for some reason didn't even think to go back and look at the battle.
yeh thts straight up cheating
[2026-9-23. : 12:24 pm]
Oh_Man -- arty's done another vid. he's also announced he's going to organise showmatches with pro, with NO maphacks, so we can see its actual capabilities
[2026-9-23. : 10:09 am]
NimoStar -- It can by playing the same map thousands of times. It is similar to AI speedrunning games
Please log in to shout.


Members Online: volhovic