Staredit Network

Staredit Network -> UMS Assistance -> Realistic Ammo?
Report, edit, etc...Posted by DNIYM on 2006-12-16 at 15:36:03
Can someone give me an example of a Realistic Ammo System?
I would like it to waste ammo without it being a 1-hit kill game.
kthnxbai
Report, edit, etc...Posted by SomeIdiotNerd on 2006-12-16 at 15:44:19
would you happen to be using vHP? cuz i think thats your prob.

there are many ways to put on a realistic ammo system, but you need to be more specific. Are you using a triggered ammo system? like Dark Swarm? or are you using the actual firing system made by sc? cuz i can help with either

Report, edit, etc...Posted by DNIYM on 2006-12-16 at 15:48:40
Excuse me, but what is vHP?
What I mean about a Realistic Ammo System is, For example Minerals are ammo, a marine shoots a civilian after the Marine shoots the Minerals go down lowering the ammo the marine has left.
Does that make sense?
Report, edit, etc...Posted by n0b0dy- on 2006-12-16 at 16:09:42
You basically need a terran science vessel in a corner of a map unseen by the players, so when they attack a monster, then the terran vessel will try to move and support that unit. When the terran science vessel leaves that location create a trigger where it has "0 terran vessel in LOCATION, ENEMY PLAYER brings at least 1 unit to location PLAYER 1, where location PLAYER 1 is centered on the unit owned by player 1 that is attacking the enemy player, then you just add sounds and subtract minerals; repeat. Simple, however you probaly need to fiddle with AI scripts for it to work perfectly. The most simple solution would be 1 hit kills, or you could make it play a sound and subtract minerals at X time where X time is the amount of time it takes for a unit to fire, however this method could be bad if that player is only moving and not attacking... Anyways, the science vessel method is the best method that i currently know of right now... and it works so ya smile.gif Maybe search the tutorials for more help
Report, edit, etc...Posted by Zeratul_101 on 2006-12-16 at 16:17:12
according to previous research, sci vessel is flawed against units with really fast attack rates.
Report, edit, etc...Posted by DNIYM on 2006-12-16 at 16:17:51
I did not understand what you just said confused.gif .
I have seen it happen in the map Realistic Ammo System that i just recently downloaded.
Is there a easier way of doing what the creater of Realistic Ammo System did in the map?
kthnxbai
Report, edit, etc...Posted by Lord-Omega on 2006-12-16 at 16:20:13
ok, make a terran wraith for example in 1 of the 4 corners of your map with a 2x2 location over it, then make it when there is no wraith there it gets moved back and 1 mineral is subtracted from the player who has ammo.
Report, edit, etc...Posted by Zeratul_101 on 2006-12-16 at 16:22:31
ya...you do that...disregard the fact that it does nothing.
Report, edit, etc...Posted by DNIYM on 2006-12-16 at 16:28:00
Why thank you Lord-Omega i will try that.
Report, edit, etc...Posted by CheatEnabled on 2006-12-16 at 16:31:03
Don't try it. It doesn't work.
Use a science vessel instead of a wraith, and it will work.

This happens because the science vessel wants to aid the unit attacking, and it moves.
Report, edit, etc...Posted by Lord-Omega on 2006-12-16 at 16:38:11
oh, and youll need these 2 triggs to.


Trigger
Description:
reload
Players:
¤ player
Conditions:
¤ Playe acumaltes 0 minerals
¤ player acumaltes at least 1 gas
Actions:
¤ set alliance for all players to ally
¤ display reloading
¤ subtract 1 gas from player
¤ wait 1000 mil secs
¤ add 50 minerals to player
¤ set alliance for pc player to enemy
¤ preserve trigger


so 1 gas is a clip of 50 shots basically


Trigger
Description:
out of ammo
Players:
¤ player
Conditions:
¤ player get 0 gas and minerals
Actions:
¤ set alliance with all players to ally
¤ preserve trigger



and then make a spot where they can get more amunition

ADDITION:
QUOTE(CheatEnabled @ Dec 16 2006, 04:31 PM)
Don't try it. It doesn't work.
Use a science vessel instead of a wraith, and it will work.

This happens because the science vessel wants to aid the unit attacking, and it moves.
[right][snapback]604520[/snapback][/right]


so does a wraith, but use sci vess if its a guarentee, and actually, make the location 1x1, so be sure to have the scivessle in it.
Report, edit, etc...Posted by DNIYM on 2006-12-16 at 16:40:01
I tried the Science Vessel Technique and it didn't work.
Is there any other way?

ADDITION:
Lord-Omega i already know that, but thanks.
Report, edit, etc...Posted by Lord-Omega on 2006-12-16 at 16:43:15
kk, i dont know if theres anyway, try it with a wraith 2
Report, edit, etc...Posted by DNIYM on 2006-12-16 at 16:50:02
The wraith technique also does not work.
Report, edit, etc...Posted by n0b0dy- on 2006-12-16 at 16:58:46
You have to add AI scripts or else the computers don't have a "brain" to even consider moving a unit.
Report, edit, etc...Posted by DNIYM on 2006-12-16 at 16:59:57
Whats the right AI Script?
Report, edit, etc...Posted by Zeratul_101 on 2006-12-16 at 17:05:40
QUOTE(n0b0dy- @ Dec 16 2006, 01:58 PM)
You have to add AI scripts or else the computers don't have a "brain" to even consider moving a unit.
[right][snapback]604539[/snapback][/right]


not entirely true there...

many(if not all) impossible scenarios maps don't use AI scripts, yet seiged seige tanks will still move to attack you...
Report, edit, etc...Posted by Lord-Omega on 2006-12-16 at 17:09:34
well yea, everything will move to attck you if you get in sight of that unit
Report, edit, etc...Posted by CheatEnabled on 2006-12-16 at 17:14:48
Medics move to heal even without AI scripts.
Report, edit, etc...Posted by Zell.Dincht on 2006-12-16 at 17:28:49
QUOTE(CheatEnabled @ Dec 16 2006, 04:14 PM)
Medics move to heal even without AI scripts.
[right][snapback]604553[/snapback][/right]

BUT, the unit the Medic is going to heal must have more than 80 hp.
Report, edit, etc...Posted by Zeratul_101 on 2006-12-16 at 17:29:55
QUOTE(Zell.Dincht @ Dec 16 2006, 02:28 PM)
BUT, the unit the Medic is going to heal must have more than 80 hp.
[right][snapback]604557[/snapback][/right]


what...?

they do heal rines(40 hp max)...
Report, edit, etc...Posted by Shin_Ryu_Hyuuga on 2006-12-17 at 00:03:52
Ok, use VHP. And when you don't want one hit one kill, then have the bigger units have more than one Burrowed Z-ling or w/e.

And when they get a Z-ling kill, subtract one mineral and set kills of Z-ling to 0.
Or whatever.
And I am sure you know the rest.
Report, edit, etc...Posted by wizard898 on 2006-12-18 at 17:19:56
heres my idea, create a centered location around the shooting unit. and have a powerup named something like "Ammo Cartridge" at another location that players cant get to. When the shooter comes near any enemy, a computer enemy also spawns by the powerup, attacking it. when no enemies are near the shooter, the computer attacking the powerup disappears, so when your ammo cartridge blows up, you are out of ammo. I think that would work. Nice and easy with no using vHP at all biggrin.gif
Report, edit, etc...Posted by NerdyTerdy on 2006-12-18 at 17:31:48
You're not necessarily attacking a unit when near it. Sometimes you're running away tongue.gif
Report, edit, etc...Posted by SomeIdiotNerd on 2006-12-18 at 20:44:26
OK i will try to make my explanation as simple and as good as possible.

ok vHP=Virtual Hit Points, meaning that the HP for the unit is made with triggers.
Because of Starcrafts lack of a Subtract function for triggered HP we had to get around that.
the only function we can use is set, so you put a location over the unit you want to be shot.
using triggers create 10 BURROWED drones or how many every you want, i will use 10. Make sure that the drones have 1 HP
Next, make sure that the unit your attacking is invincible, and also make sure that ONLY 1 Drone is NOT invincible (because of splash damage you must make sure that all other drones are invinciple except one)

heres a few triggers for what i have so far

This trigger will center the Location
Conditions
P2 bring at least 1 unit to anywhere (or wherever you want)
Actions
Center Location Labeled "create vHP" on unit
preserve Trigger


This trigger will create the drones
Conditions
P2 bring exactly 1 unit to "create vHP"
Actions
Create 9 INVINCIBLE Burrowed Drones at location "create vHP"
create 1 Burrowed Drone at location "create vHP"


ok next we must have the ammo trigger

This will set the ammo system
Conditions
P1 accumulates at least 1 gas
P1 accumulates exactly 0 mineral ore
Actions
Subtract 1 gas for P1
Set Mineral ore to 10 (or however many you want)
preserve trigger



this will be the Firing System

Ok now we have the firing trigger

Conditions
Bring P2 exactly 9 drones to location "create vHP"
Actions
Set HP for unit at "create vHP" set to 90%
Subtract 1 mineral ore for P1
set invincibility state for 1 drone at "create vHP" to Disable


The above system must be continued until you reach 1 drone left

This will be the final trigger

Conditions
Bring P2 Exactly 1 drone to location "create vHP"
Actions
Kill 1 unit at location "create vHP"


i sure hope this was helpful, if you need more info on vHP please visit this tutorial - http://www.staredit.net/index.php?tutorial=74
This link will give you info on an accuracy bullet system - http://www.staredit.net/index.php?tutorial=118
This will help you more with setting the ammo - http://www.staredit.net/index.php?tutorial=39
Next Page (1)