View Single Post
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 01-13-2014 , 19:15   Re: Change item name, and change attribute though code?
Reply With Quote #8

There's several string attributes that kinda allow you to set the strings involved: the "additional halloween response criteria name" and "taunt success sound" ones. The halloween one is only used by the server and so it should be (relatively) safe to mess with. The taunt one works by performing an EmitSound with the specified string, so the server ends up sending the string to the client (the same way any other sound is emitted).
Now, if you attempt to edit any of these, you may end up stepping outside the area allocated for these strings, so ideally for these you would create a new CAttribute_String with the proper amount of memory allocated, as well as allocate a decent amount of memory for the actual string. (There's some additional stuff going on when it's a pyrovision-only sound such as for the Infernal Orchestrina, so... careful).

In other news, my Boston Boom-Bringer now shouts "IS EVERYONE READY" whenever I taunt.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.

Last edited by FlaminSarge; 01-13-2014 at 19:16.
FlaminSarge is offline