Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [SOLVED] Vhp weapon damage
[SOLVED] Vhp weapon damage
This topic is locked. You can no longer write replies here.
Aug 2 2011, 11:14 pm
By: ubermctastic  

Aug 2 2011, 11:14 pm ubermctastic Post #1



So what I've got right now is a classic zombie shooter game.

Each player has a ghost with which they can use A-click to shoot the zombies that are slowing walking towards them.

Each zombie has Vhp (counted by a death counter) and a location following it. when the zombie gets shot it comes back, and a death is subtracted from to account for this.

I want to be able to have the players be able to use a different gun, that will each subtract different ammounts of deaths, dealing more damage to the zombie.
The problem is I don't know how to make the triggers recognize who shot the zombie, and deal an ammount of damage based on what gun they have equipped.

Attachments:
Zombie House 13.scx
Hits: 2 Size: 69.92kb



None.

Aug 2 2011, 11:19 pm Dem0n Post #2

ᕕ( ᐛ )ᕗ

Have a different death set for each type of gun (ex. 1 death for machine gun, 2 deaths for flamethrower, 3 deaths for rockets, ect), and then for the triggers that subtract deaths from the zombies' hp, add a condition that checks how many deaths the player has to see which type of gun he's using. Then, you can subtract the deaths from the hp accordingly.




Aug 2 2011, 11:59 pm ubermctastic Post #3



Yes, but how can I figure out which player is attacking?

Never mind I'm going to use a combination of VHP and kills to cash. The only problem there should ever be is if two people with different guns shoot different zombies at exactly the same time. In that case the zombie that took the damage might be switched, but the ammo-points awarded will not be affected for each player.

Post has been edited 1 time(s), last time on Aug 3 2011, 3:34 am by K_A.



None.

Aug 3 2011, 5:27 pm samsizzle Post #4



The only way to know who shot who is to detect targets with EUDs. I don't think it'd be worth it for your map, considering you'd have to keep all of the units IDs the same throughout the game which CAN be a pain in the ass... and the general hassle of EUDs.



None.

Aug 3 2011, 5:32 pm Sacrieur Post #5

Still Napping

Use kill score to check. The person who gets the kill score is the one who made the kill.



None.

Aug 3 2011, 5:59 pm FoxWolf1 Post #6



Unfortunately, as the OP alluded, using kill score will glitch whenever two players kill units of the same type (or different types with the same score) simultaneously. Hopefully, you'll put in some kind of priority-determining system such that, when such glitches occur, players won't die as a result of them (i.e. if they shoot a near zombie and a far zombie at the same time, using strong and weak guns, it should check around the players and then assume that the near zombie is the one shot with the stronger gun, so that, if they did in fact shoot the near zombie with the strong gun, they don't die because of the glitch giving the near zombie the weak gun's damage instead).



None.

Aug 3 2011, 8:12 pm Sacrieur Post #7

Still Napping

Quote from FoxWolf1
Unfortunately, as the OP alluded, using kill score will glitch whenever two players kill units of the same type (or different types with the same score) simultaneously. Hopefully, you'll put in some kind of priority-determining system such that, when such glitches occur, players won't die as a result of them (i.e. if they shoot a near zombie and a far zombie at the same time, using strong and weak guns, it should check around the players and then assume that the near zombie is the one shot with the stronger gun, so that, if they did in fact shoot the near zombie with the strong gun, they don't die because of the glitch giving the near zombie the weak gun's damage instead).

It's not perfect, but it helps. The chance of two players attacking the same type of zombie that both die within 1/12 of a second is slim.



None.

Aug 4 2011, 12:53 am Lanthanide Post #8



Quote from Sacrieur
It's not perfect, but it helps. The chance of two players attacking the same type of zombie that both die within 1/12 of a second is slim.
I don't know the specifics of the map, but in general this happens all the time whenever you use attacks that do splash damage.



None.

Aug 4 2011, 5:07 am rockz Post #9

ᴄʜᴇᴇsᴇ ɪᴛ!

unless you have an absurd amount of zombies, I'd use EUDs, but that's just me.

Each player has a ghost that presumably never dies. You can preplace zombies and assign them all DCs and a location specific to them. When the zombie is ready to die, move them elsewhere and kill a different unit.

If you don't use zerg, or plan accordingly, and give each player a unique damage, you can tell which unit shot which zombie, even if 2 players shoot the same zombie or different ones.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Aug 6 2011, 2:55 pm ubermctastic Post #10



Yes EUD's will not work for me either. #1 I don't know how to use them. #2 Each player will be using multiple units.



None.

Aug 6 2011, 4:14 pm rockz Post #11

ᴄʜᴇᴇsᴇ ɪᴛ!

I'm kind of wondering why you need vhp at all...

Is it for the different guns? In that case make the guns have more damage...



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Aug 6 2011, 4:54 pm ubermctastic Post #12



VHP = Accurate Ammo System

Think Resident Evil One Zombies



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
[2024-4-17. : 1:08 am]
O)FaRTy1billion[MM] -- i'll trade you mineral counts
[2024-4-16. : 5:05 pm]
Vrael -- Its simple, just send all minerals to Vrael until you have 0 minerals then your account is gone
[2024-4-16. : 4:31 pm]
Zoan -- where's the option to delete my account
[2024-4-16. : 4:30 pm]
Zoan -- goodbye forever
Please log in to shout.


Members Online: jun3hong, NudeRaider, Ultraviolet, Roy