PDA

View Full Version : screen messages


Dak Knight
03-28-2007, 07:31 PM
i Know this is a modification and was wondering if someone has a cure for this

i use this in my tdm gsc for showing yardage kill on screen

if(****Loc == "head" && sMeansOfDeath != "MOD_MELEE")
sMeansOfDeath = "MOD_HEAD_SHOT";
if(isPlayer(attacker) && attacker != self && sMeansOfDeath != "MOD_MELEE" && sWeapon != "panzerschreck_mp" && sWeapon != "frag_grenade_british_mp" && sWeapon != "frag_grenade_american_mp" && sWeapon != "tripwire_mp" && sWeapon != "frag_grenade_russian_mp" && sWeapon != "frag_grenade_german_mp" && sWeapon != "potato_mp" && sWeapon != "artillery_mp" && sWeapon != "planebomb_mp" && sWeapon != "mortar_mp")

{
hitlocation = "";

if(****Loc == "head")
hitlocation = "Head ";
if(****Loc == "helmet")
hitlocation = "Helmet ";
if(****Loc == "neck")
hitlocation = "Throat ";
if(****Loc == "torso_upper")
hitlocation = "Upper Torso ";
if(****Loc == "torso_lower")
hitlocation = "Balls";
if(****Loc == "right_arm_upper")
hitlocation = "Upper Right Arm ";
if(****Loc == "right_arm_lower")
hitlocation = "Lower Right Arm ";
if(****Loc == "right_hand")
hitlocation = "Right Hand ";
if(****Loc == "left_arm_upper")
hitlocation = "Upper Left Arm ";
if(****Loc == "left_arm_lower")
hitlocation = "Lower Left Arm ";
if(****Loc == "left_hand")
hitlocation = "Left Hand ";
if(****Loc == "right_leg_upper")
hitlocation = "Upper Right Leg ";
if(****Loc == "right_leg_lower")
hitlocation = "Lower Right Leg ";
if(****Loc == "right_foot")
hitlocation = "Right Foot ";
if(****Loc == "left_leg_upper")
hitlocation = "Upper Left Leg ";
if(****Loc == "left_leg_lower")
hitlocation = "Lower Left Leg ";
if(****Loc == "left_foot")
hitlocation = "Left Foot ";

distance = distance(Attacker.origin , self.origin);
meters = (int(distance * 0.254))/10;
feet = distance / 12; //Feet
yards = distance * 0.028;


//feet
//attacker iprintlnBold("^1" + hitlocation + " Shot ^7from ^3" + feet + " ^7feet!");
//self iprintlnBold("^1" + hitlocation + " Shot ^7from ^3" + feet + "^7 feet!"); //Message to death person
iprintln("^1" + attacker.name + "^7 killed ^1" + self.name + "^7 with a shot over a distance of ^1" + feet + " feet!"); //Message to every player

//yards
self iprintlnBold("^1" + hitlocation + "^4 Shot ^7from ^2" + yards + " ^7yard!");
attacker iprintlnBold("^1" + hitlocation + "^4 Shot ^7from ^2" + yards + " ^7yard!"); //Message to death person
iprintln("^1" + attacker.name + "^7 killed ^1" + self.name + "^4 Shot ^7from ^2" + yards + " ^7yard!"); //Message to every player

}

And recieve This error in log


WARNING: Non-localized Game Message string is not allowed to have letters in it. Must be changed over to a localized string: "^1^2=[XS]= DAK Knight^7 killed ^1^2=[XS]=Tester^7 with a shot over a distance of ^1320.974 feet!"
WARNING: Non-localized Game Message string is not allowed to have letters in it. Must be changed over to a localized string: "^1Head ^4 Shot ^7from ^2107.847 ^7yard!"
WARNING: Non-localized Game Message string is not allowed to have letters in it. Must be changed over to a localized string: "^1Head ^4 Shot ^7from ^2107.847 ^7yard!"
WARNING: Non-localized Game Message string is not allowed to have letters in it. Must be changed over to a localized string: "^1^2=[XS]= DAK Knight^7 killed ^1^2=[XS]=Tester^4 Shot ^7from ^2107.847 ^7yard!"


Any help would greatly be appreciated.

Thx Knight


xfire: dakknight

Marc.
03-28-2007, 07:57 PM
ive seen this sort of script on the extreme forums as well some time ago...and i wondered...why dont they and you use the extreme obituaries...set it to 8 and you have x killed y with an z weapon at the somewhere from x yards

Dak Knight
03-28-2007, 11:39 PM
your right of course Marc but we are a sniper server and use long range rifles for the bigger maps and it unfortunately does not give out these messages in obits

This gives us the yardage using that rifle (substitute) and was wondering if someone had found a better way of doing it.

Thx