i am porting the map BL-grill,it has an thing to where it says your name then tells you that you were melted.fryed,hot,etc,but it gets the name from player.cs,i do not see this file anywhere,i would like to keep this option in the game,everything works and it will twll you one of the messages but will not put your name in front of it,can anyone help
/ Damage Rate for entering Liquid, repurposed from player.cs
$DamageLava = 0.01;
$DamageHotLava = 0.01;
$DamageCrustyLava = 10.0;
datablock TriggerData(BLGrillTrigger)
{
tickPeriodMS = 100;
};
datablock TriggerData(BLGrillTrigger)
{
tickPeriodMS = 100;
};
function BLGrillTrigger::onEnterTrigger( %this, %trigger, %obj )
{
if (!%obj.client)
return;
%messageArray[0] = "\c2" @ %obj.client.namebase @ " just decided to sleep with the coals.";
%messageArray[1] = "\c2" @ %obj.client.namebase @ " decided to go for well-done.";
%messageArray[2] = "\c2" @ %obj.client.namebase @ " likes it HOT.";
%messageArray[3] = "\c2" @ %obj.client.namebase @ " fails at walking on hot coals.";
%messageArray[4] = "\c2" @ %obj.client.namebase @ " IS ON FIRE!!!";
%messageArray[5] = "\c2" @ %obj.client.namebase @ " turned into a plastic puddle.";
%messageArray[6] = "\c2" @ %obj.client.namebase @ " says, 'That's hot.'";
%messageArray[7] = "\c2" @ %obj.client.namebase @ " decided to go down in flames.";
%messageArray[8] = "\c2" @ %obj.client.namebase @ " made like Gollum and the One Ring.";
%messageArray[9] = "\c2" @ %obj.client.namebase @ " is now available in Flame-Broiled or Extra Crispy.";
messageAll('SomeDumarseFellIntoTheGrill', %messageArray[getRandom(0,9)]);
%obj.kill();
i need how to know how to make the above lines say the player name