Staredit Network

Staredit Network -> StarForge -> HP 2?
Report, edit, etc...Posted by Corbo(MM) on 2005-04-29 at 22:05:47
QUOTE
No, corbo. You need to make a distinction between unit-sprites and pure sprites. Unit sprites are not simply sprites of units. They have a special flag ('draw as sprite' in SF) that changes their behavior and how the ID is interpreted. If draw as sprite is checked, the ID is taken from sprites.dat. If the flag is not checked, the ID is taken from units.dat and the object actually behaves like a unit. Unit sprites are clickable, can be ordered, killed, etc. Pure sprites are NEVER clickable, and I'm pretty sure units always walk underneath them


i know what a unit sprite is i know what doodads sprites are i know what the disable square does to buildings, units, critters, resources and even spells i know what the draw as sprite square is and in that msg i was talking about unit sprites not sprites in general because..how can a doodad sprite have health?
u cannot even lick them

*/doodad sprite= what you get by checking the box of 'draw as sprite'
Report, edit, etc...Posted by O)FaRTy1billion on 2005-04-29 at 22:26:32
What would happen if you had a doodad sprite and u unchecked the "Draw as sprite" thing? (Or made so it has properties of a unit)
Would it crash? Or would it be some crazy "BLANK" unit? And where does that "BLANK" with the lines through it come from...?
Report, edit, etc...Posted by Heimdal on 2005-04-30 at 00:09:25
QUOTE(corbo @ Apr 27 2005, 06:05 PM)
if you place a unit-sprited marine you will be able to click it but you won't be able to move it or make it attack or patrol  and the other real units will be able to walk trough you sprited marine and be able to kill it too getting back to the health
there is 1337 health
[right][snapback]196573[/snapback][/right]
I corrected you because this isn't right. A unit-sprite marine can be ordered, it can attack, and it cannot be walked through.

When you change the "draw as sprite" flag, it just changes how the ID gets interpreted. For example, sprite ID 0 is an ashworld rock doodad. If you uncheck "draw as sprite," it becomes a unit-sprite with the same ID, which would be a marine.
Report, edit, etc...Posted by Carlsagan43 on 2005-05-01 at 22:53:03
i know this is off topic but i want to be sure

AE 0F 92 11 <-- here is the hex for the HP


AE is the HP2 Box

0F and 92 are interpreted as 92 0F which is 37391 in bin

and the 11 is supposed to be the invincibility byte right? Thats waht it said at CC
Report, edit, etc...Posted by Heimdal on 2005-05-04 at 12:55:55
Yes, AE is the HP2 box. The other 3 bytes form a signed integer in little endian, so it's 0x11920F, or 1151503.

There is no "invincibility byte," but units that are supposed to be invincible usually have the "HP2" box set to 1. This doesn't actually make it invincible though.
Report, edit, etc...Posted by Corbo(MM) on 2005-05-04 at 23:01:27
oh comon heimdal!
QUOTE
I corrected you because this isn't right. A unit-sprite marine can be ordered, it can attack, and it cannot be walked through.

When you change the "draw as sprite" flag, it just changes how the ID gets interpreted. For example, sprite ID 0 is an ashworld rock doodad. If you uncheck "draw as sprite," it becomes a unit-sprite with the same ID, which would be a marine.


you better start testing more and talk less; even when the point of this is to offend u i didn't want to you do
place marine
check draw as sprite
load stacraft
play the map and you will c that the marine is disabled
QUOTE
disabled

and you cannot attack you can click it and right after u click the stop button will turn on and it will if u keep clicking the same with patrol and with move
Report, edit, etc...Posted by O)FaRTy1billion on 2005-05-04 at 23:44:56
I placed unit sprite and it was just like a normal unit. Only I could have sworn it was healing very slowly when attacked... but who knos what I was smoking... tongue.gif
Report, edit, etc...Posted by Heimdal on 2005-05-05 at 18:59:43
QUOTE(corbo @ May 4 2005, 10:01 PM)
oh comon heimdal!
you better start testing more and talk less
No, I think you should. Maybe you checked "disabled" instead of "draw as sprite?"

[attachmentid=8646]
[attachmentid=8647]
Report, edit, etc...Posted by Clokr_ on 2005-05-06 at 07:24:55
QUOTE(corbo @ May 5 2005, 04:01 AM)
oh comon heimdal!
you better start testing more and talk less; even when the point of this is to offend u i didn't want to you do
place marine
check draw as sprite
load stacraft
play the map and you will c that the marine is disabled
[right][snapback]201045[/snapback][/right]


Heimdal is 100% right. The sprite-units can be disabled before the map starts if the 'Disabled' flag is set. Uncheck that flag and uncheck 'Draw as sprite' and you will ge a normal unit.
Next Page (2)