Orangutanz that is not relevant to my goal. I want to change the players' models to something they should not be in the first place, and be able to change them to not one, but several models. This should be done without actually changing their "model" info, so the game thinks they are one model but they are another.
Avalanche, what do you think about the situation? I'm thinking that I should intercept the TeamInfo and TeamScore messages and resend them with the teamnames I want them to have. I tried to write it for TeamInfo, but I'm not doing it correctly, here's my attempt:
Code:
register_message(84, "TeamInfo_function")
}
public TeamInfo_function()
{
new id = read_data(1)
new zom[32], hum[32]
get_cvar_string("zombiemodelcvar", zom, 31)
get_cvar_string("humanmodelcvar", hum, 31)
if(is_user_bot(id))
{
message_begin(MSG_ALL, 84, {0.0, 0.0, 0.0}, id)
write_byte(id)
write_string(zom)
message_end()
}
else
{
message_begin(MSG_ALL, 84, {0.0, 0.0, 0.0}, id)
write_byte(id)
write_string(hum)
message_end()
}
}
I don't think id should be passed in message_begin(), but I don't know what should be.