Well, i've been testing the usage of Director HUD Messages for knowing how to use it's parameters, and while testing i've noticed that the "fxtime" param doesn't seem to work for something
I did a testing plugin for this:
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#define PLUGIN "Director HUD Testing"
#define VERSION "0.1"
#define AUTHOR "meTaLiCroSS"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("dhud", "clcmd_DirectorHUDMessage")
}
public clcmd_DirectorHUDMessage(iId)
{
new messageText[ 32 ];
new redColor[ 5 ];
new greenColor[ 5 ];
new blueColor[ 5 ];
new coordX[ 5 ];
new coordY[ 5 ];
new effectType[ 5 ];
new timeEffect[ 5 ];
new timeHold[ 5 ];
new timeFadeIn[ 5 ];
new timeFadeOut[ 5 ];
read_argv( 1, messageText, charsmax( messageText ) );
read_argv( 2, redColor, charsmax( redColor ) );
read_argv( 3, greenColor, charsmax( greenColor ) );
read_argv( 4, blueColor, charsmax( blueColor ) );
read_argv( 5, coordX, charsmax( coordX ) );
read_argv( 6, coordY, charsmax( coordY ) );
read_argv( 7, effectType, charsmax( effectType ) );
read_argv( 8, timeEffect, charsmax( timeEffect ) );
read_argv( 9, timeHold, charsmax( timeHold ) );
read_argv( 10, timeFadeIn, charsmax( timeFadeIn ) );
read_argv( 11, timeFadeOut, charsmax( timeFadeOut ) );
DirectorHUDMessage
(
iId,
.szMessage = messageText,
.iRed = str_to_num(redColor),
.iGreen = str_to_num(greenColor),
.iBlue = str_to_num(blueColor),
.flX = str_to_float(coordX),
.flY = str_to_float(coordY),
.iEffect = str_to_num(effectType),
.flEffectTime = str_to_float(timeEffect),
.flHoldTime = str_to_float(timeHold),
.flFadeInTime = str_to_float(timeFadeIn),
.flFadeOutTime = str_to_float(timeFadeOut)
)
return PLUGIN_HANDLED
}
stock DirectorHUDMessage(const iId, const szMessage[], const iRed = 0, const iGreen = 160, const iBlue = 0, const Float:flX = -1.0, const Float:flY = 0.65, const iEffect = 2, const Float:flEffectTime = 6.0, const Float:flHoldTime = 3.0, const Float:flFadeInTime = 0.1, const Float:flFadeOutTime = 1.5)
{
message_begin(iId ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, SVC_DIRECTOR, .player = iId)
write_byte(strlen(szMessage) + 31); // size of all write_*
write_byte(DRC_CMD_MESSAGE);
write_byte(iEffect);
write_long(iBlue + (iGreen<<8) + (iRed<<16))
write_long(_:flX)
write_long(_:flY)
write_long(_:flFadeInTime)
write_long(_:flFadeOutTime)
write_long(_:flHoldTime)
write_long(_:flEffectTime)
write_string(szMessage);
message_end();
}
So I only need to paste on console:
Code:
dhud DirectorHUDMessageTesting 0 200 200 -1.0 0.15 2 0.0 2.0 0.1 3.0
Let's see:
rgb = { 0, 200, 200 } (skyblue)
pos = { -1.0, 0.15 }
effect = 2 (training room text, writes char by char)
fxtime = 0.0, i've testing using 10.0, 20.0, 30.0 and the hud didn't change at all
holdtime = 2.0, the hudmsg will stay 2 seconds
fadeintime = 0.1, in this case, the time that every char will be printed
fadeouttime = 3.0, when holdtime ends, the time that the message will slowly dissapear
So, my question is
What's the functionality of the "fxtime" parameter, for hudmessages and director hudmessages? It seems that it's the same thing anyway
__________________