Staredit Network

Staredit Network -> Concepts -> EUDs "Perfect" Ammo System
Report, edit, etc...Posted by LegacyWeapon on 2005-12-09 at 23:55:53
Yes I have finally created a "Perfect" ammo system with EUDs. How this works is it detects cooldown. Since cooldown is on a third byte, you need to multiply the value you want by 65536. However, the second byte is ever changing and I don't know how to make it stay at a certain value so. Even though we had found the cooldown byte, it still took quite a long time to get it to work perfectly with your attack. Without hypers would make it mess up 20% of the time and with hypers would make the trigger run too many times. Limited by using only at least and at most, I have found a very simple way to do this.

For those who didn't want to read the giant paragraph:
Limits
On the third byte.
Second byte is always changing.
You can only use 'at least' and 'at most' for this.

Setup
Take the cooldown amount you want to detect and multiply it by 65536 (for the third byte).

Making it work as an Ammo System
Using a switch, you can make it only detect your shot once. However, we have also discovered that cooldown is set before the animation occurs so "fake" shots may occur.

We use 3 because it is the best place for all unit attack cooldowns.
Trigger
Conditions:
¤ Cooldown for Unit 1 is at least 65536*3.
¤ 'Switch 1' is Cleared.
Actions:
¤ Set 'Switch 1'.
¤ Do whatever you want because the unit shot

Trigger
Conditions:
¤ Cooldown for Unit 1 is at most (65536*3) - 1.
¤ 'Switch 1' is Set.
Actions:
¤ Clear 'Switch 1'.


Attached is an example map.
[attachmentid=15916]

A very special thanks to Mr.Mooo_Cow(U) for finding the cooldown byte!

If an admin or DLDB manager could update the uBeR@TiOn Data Files and add "Cooldown" to the list, that would be great biggrin.gif
[attachmentid=15917]
Report, edit, etc...Posted by Forsaken on 2005-12-09 at 23:58:23
Farking sweet!

I think I'll be using this in my RPG.

Will it work for computer players?
Report, edit, etc...Posted by LegacyWeapon on 2005-12-09 at 23:58:53
It works off the Unit Table as always.
Report, edit, etc...Posted by Raindodger on 2005-12-10 at 00:14:05
ohmy.gif This is awesome. Much better then 1 kill = -1 gas biggrin.gif GoGo LW + Mr.Mooo.Cow!!11OneOneExclamationMark!
Report, edit, etc...Posted by Rantent on 2005-12-10 at 00:20:13
You should make it so that it detects macs and uses a simpler system. wink.gif Either that or I simply wouldn't gain any minerals in an rpg... disgust.gif
Report, edit, etc...Posted by fishgold on 2005-12-10 at 00:52:26
Very simple and works very well. gj wink.gif
Report, edit, etc...Posted by Kumano on 2005-12-10 at 07:04:37
Yeah, I suspected it could be possible if cooldown could be detected.
Report, edit, etc...Posted by VizuaL on 2005-12-10 at 20:14:08
can i do this with staredit or xtra editor?
Report, edit, etc...Posted by Voyager7456(MM) on 2005-12-10 at 21:00:02
No. Only StarForge (with special data files) and Uber@tion support EUD triggers.
Report, edit, etc...Posted by VizuaL on 2005-12-10 at 21:24:56
QUOTE
No. Only StarForge (with special data files) and Uber@tion support EUD triggers.


screw that

i hate starforge its buggy and messes up terrain
Report, edit, etc...Posted by dumbducky on 2005-12-10 at 21:27:09
I don't really get EUDs and that crap but what if stim were in use? Would it still count the right amount of shots?
Report, edit, etc...Posted by LegacyWeapon on 2005-12-10 at 23:06:41
QUOTE(VizuaL @ Dec 10 2005, 09:24 PM)
screw that

i hate starforge its buggy and messes up terrain
[right][snapback]376186[/snapback][/right]
uBeR@TiOn works by only touching the Trigger Section and it shouldn't mess it up.
QUOTE(dumbducky @ Dec 10 2005, 09:27 PM)
I don't really get EUDs and that crap but what if stim were in use?  Would it still count the right amount of shots?
[right][snapback]376188[/snapback][/right]
Read closedeyes.gif
QUOTE(LegacyWeapon @ Dec 9 2005, 11:55 PM)
We use 3 because it is the best place for all unit attack cooldowns.
[right][snapback]375437[/snapback][/right]

Report, edit, etc...Posted by VizuaL on 2005-12-10 at 23:12:46
QUOTE
uBeR@TiOn works by only touching the Trigger Section and it shouldn't mess it up.


really? i've never looked into Uberation cause i use proedit, ill give it a shot

ADDITION:
also i though blizzard released a patch disabling use of EUDS so that the map crashes
Report, edit, etc...Posted by Forsaken on 2005-12-10 at 23:13:18
The only thing Proedit is still good for is that it can unrecycle strings.

I am not too sure if the newest (regular) Überation can...

LW?
Report, edit, etc...Posted by LegacyWeapon on 2005-12-10 at 23:18:05
QUOTE(Forsaken @ Dec 10 2005, 11:13 PM)
I am not too sure if the newest (regular) Überation can...

LW?
[right][snapback]376276[/snapback][/right]
Nope. But PROEdit screws up when unrecycling comments (I've tried multiple times).

ADDITION:
QUOTE(VizuaL @ Dec 10 2005, 11:12 PM)
also i though blizzard released a patch disabling use of EUDS so that the map crashes
[right][snapback]376273[/snapback][/right]
The map wouldn't crash. The EUD triggers just wouldn't run. And they only disabled EUD actions.
Report, edit, etc...Posted by www.com.au on 2005-12-11 at 08:07:35
Dam u guys are gangsta.

Im going to download uberation and get into this. It just looked daunting, but i spose if i want to get anywhere ill have to get it someday.


Is it hard to find EUD conditions in uberation or are the specifically marked?

QUOTE
screw that

i hate starforge its buggy and messes up terrain


I use starforge for triggers and terrain.. better than scxe.. more advanced.

screw up terrain? only thing i know of is when scxe tries to read null terrain and it just goes all anti-gangsta.
Report, edit, etc...Posted by Voyager7456(MM) on 2005-12-11 at 10:57:47
QUOTE(www.com.au @ Dec 11 2005, 07:07 AM)

Is it hard to find EUD conditions in uberation or are the specifically marked?

[right][snapback]376435[/snapback][/right]


They have their own section under Conditions. smile.gif
Report, edit, etc...Posted by Dr.Shotgun on 2005-12-11 at 12:10:06
Does it work with melee units?

Good job Legacy, I'll be sure to use this. It's so sexy.
Report, edit, etc...Posted by KrAzY on 2005-12-11 at 12:48:34
Here's a tutorial to use this EUD "Perfect" Ammo System:

Delete the patch that causes to block the EUD, and then play in Single Player at Custom Games or other multiplayer connections than Battle.net, it actually works.
Report, edit, etc...Posted by Raindodger on 2005-12-11 at 13:10:13
It works on multiplayer..i just tried it out.
Report, edit, etc...Posted by LegacyWeapon on 2005-12-11 at 17:13:26
QUOTE(Dr.Shotgun @ Dec 11 2005, 12:10 PM)
Does it work with melee units?

Good job Legacy, I'll be sure to use this. It's so sexy.
[right][snapback]376548[/snapback][/right]
All units.
QUOTE(KrAzY @ Dec 11 2005, 12:48 PM)
Here's a tutorial to use this EUD "Perfect" Ammo System:

Delete the patch that causes to block the EUD, and then play in Single Player at Custom Games or other multiplayer connections than Battle.net, it actually works.
[right][snapback]376579[/snapback][/right]
Here's a better tutorial: Just play it.
user posted image
Report, edit, etc...Posted by Cayden on 2005-12-12 at 12:12:41
Looks like im gonna use then. it looks simple enough happy.gif
Report, edit, etc...Posted by Urmom(U) on 2005-12-12 at 20:36:06
Do you think that you could detect which unit it is attacking so that you can change/vary the amount of ammo taken away?
Report, edit, etc...Posted by Gigins on 2005-12-12 at 23:48:38
Sorry for stupid questions, but how do I get unit numbers?
Report, edit, etc...Posted by Dr.Shotgun on 2005-12-13 at 07:26:57
I think its the order in which you placed it (Unit #1 is the first unit placed, units 2 is the second units, etc.)
Next Page (1)