View Single Post
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 09-14-2004 , 14:39   [ENGINE] Stock function not universal
#1

This works for most mods:
Code:
/* Creates a death message. */ stock make_deathmsg(killer,victim,headshot,weapon[]) {     message_begin(MSG_ALL,get_user_msgid("DeathMsg"),{0,0,0},0)     write_byte( killer )     write_byte( victim )     write_byte( headshot )     write_string( weapon[] )     message_end()     return 1 }

but for dod it should be:
Code:
/* Creates a death message. */ stock make_deathmsg(killer,victim,weaponNUM) {     message_begin(MSG_ALL,get_user_msgid("DeathMsg"),{0,0,0},0)     write_byte( killer )     write_byte( victim )     write_byte( weaponNUM)     message_end()     return 1 }

I'm only posting this because the engine is a "universal" module for all mods, and figured this doesn't work for dod. Please delete this post if you feel it is in the wrong place.
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu