PDA

View Full Version : New Native...?


MagicShot
03-30-2004, 20:38
Is there a possiblity of adding a new native if there is not one that will do this already..

For Placeing text on screen or like an Icon on the screen like when you buy a defuser kit it puts an icon the the screen.. I was thinking of this for new mods to show u have a special item or something...

CheesyPeteza
03-30-2004, 20:46
Its only availalbe in CS AFAIK and its called the StatusIcon message.

Geesu
03-30-2004, 20:46
It's not too difficult do do anyways:

gmsgIcon = get_user_msgid("StatusIcon")
message_begin( MSG_ONE, gmsgIcon, {0,0,0}, id )
write_byte( value ) // status
write_string( string ) // sprite name
write_byte( r ) // red
write_byte( g ) // green
write_byte( b ) // blue
message_end()


(I'm sure you know this, just posting it for those who don't)

MagicShot
03-30-2004, 21:15
Yeah I am at working with a major headache.. but I knew it was something like that never actually used it before though..

Thanx Pimp_Daddy..


P.S. How is Warcard Mod Comming Pimp_Daddy?

Geesu
03-30-2004, 21:41
war3 ft is updated now, just download the attachment.

Geesu
09-22-2004, 16:18
yes I dug up an old post... but this is possible in dod as well:

// If flag is 1, then show icon, if 0 then remove
public dod_show_sprite(id, iconID, flag){
message_begin( MSG_ONE, gmsgClientAreas, {0,0,0}, id)
write_byte(iconID)
write_byte(flag)
message_end()
}

// This function allows you to load a sprite
public dod_load_sprite(){
message_begin( MSG_ALL, gmsgClientAreas,{0,0,0},0)
write_byte(11)
write_byte(-1)
write_string("sprites/warcraft3/640hud2.spr")
message_end()
}