Raised This Month: $12 Target: $400
 3% 

[ENGINE] Stock function not universal


  
 
 
Thread Tools Display Modes
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
mahnsawce
Senior Member
Join Date: Apr 2004
Location: internet
Old 09-14-2004 , 14:44  
#2

Also, there is no headshot byte for mods other than CS which use the HLSDK standard method for the message.
mahnsawce is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 09-14-2004 , 15:05  
#3

Couldnt you fix this by looking to see what mod it is before doing the command?
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 09-14-2004 , 15:29  
#4

Quote:
Originally Posted by Twilight Suzuka
Couldnt you fix this by looking to see what mod it is before doing the command?
yes, but do you think all coders can figure this out? I think not.
__________________
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
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 09-14-2004 , 17:08  
#5

Quote:
Originally Posted by pimp daddy
Quote:
Originally Posted by Twilight Suzuka
Couldnt you fix this by looking to see what mod it is before doing the command?
yes, but do you think all coders can figure this out? I think not.
No i mean build it INTO the stock.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
BAILOPAN
Join Date: Jan 2004
Old 09-16-2004 , 18:32  
#6

added dod_make_deathmsg to cvs
__________________
egg
BAILOPAN is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode