Author Topic: Shape Name Lines  (Read 1911 times)

so ... one of the only ways to do this is spawn an invisible bot mounted on the player's head and have it's shape name be client variables?

that might not be too efficient... I do believe that you can setShapeName() on many more things that just bots..

so ... one of the only ways to do this is spawn an invisible bot mounted on the player's head and have it's shape name be client variables?

that might not be too efficient... I do believe that you can setShapeName() on many more things that just bots..
you can't setShapeName on bots or players.

you can setShapeNameDistance(0) on players and put a static shape on the players head with a shape name and have said object track the player

you can't setShapeName on bots or players.

you can setShapeNameDistance(0) on players and put a static shape on the players head with a shape name and have said object track the player
What I did a while back is created a new Player AI thing and then just set it as the control object for my client along with some other variable assignments. When creating the new playerAI you could set it's shapename I think. It wouldn't be too efficient to do it this way for an HP meter though. :/

What I did a while back is created a new Player AI thing and then just set it as the control object for my client along with some other variable assignments. When creating the new playerAI you could set it's shapename I think. It wouldn't be too efficient to do it this way for an HP meter though. :/
people have reported this as both working and not working

no loving clue on my part

The other thing you can do, besides a ASCII healthbar, is use player::setShapeNameColor to represent how much health they have left.

The other thing you can do, besides a ASCII healthbar, is use player::setShapeNameColor to represent how much health they have left.
Sounds cool.
Though this also sounds cool. I'll probably make it in my spare time. I've already made a custom setshapename mod.

Sounds cool.
Though this also sounds cool. I'll probably make it in my spare time. I've already made a custom setshapename mod.
Code: [Select]
function player::updateHealthShapeName(%player)
{
%DL = %player.getDamageLevel();
if(%DL <= 50)
{
%DL *= 0.02;
%color = %DL SPC 1 SPC "0";
}
if(%DL > 50)
{
%DL -= 50;
%DL *= 0.02;
%DL = 1 - %DL;
%color = "1" SPC %DL SPC "0";
}
%player.setShapeNameColor(%color);
}

I used three stops because otherwise the fade isn't very pretty or effective.

I used three stops because otherwise the fade isn't very pretty or effective.
I was talking about the one with the ASCII Bar

Sounds cool.
Though this also sounds cool. I'll probably make it in my spare time. I've already made a custom setshapename mod.
What I did a while back is created a new Player AI thing and then just set it as the control object for my client along with some other variable assignments. When creating the new playerAI you could set it's shapename I think. It wouldn't be too efficient to do it this way for an HP meter though. :/
Same method?

You know, using the player's shape name to display a bunch of stuff other than their name is exactly why we aren't allowed to change player shape names anymore. Don't forget any more stuff up for the modding community.

You know, using the player's shape name to display a bunch of stuff other than their name is exactly why we aren't allowed to change player shape names anymore. Don't forget any more stuff up for the modding community.
Er, not exactly. It was revoked because people were impersonating others, same reason chat now uses getPlayerName() and the same reason we can't edit values (excluding score) on the player list.

Er, not exactly. It was revoked because people were impersonating others, same reason chat now uses getPlayerName() and the same reason we can't edit values (excluding score) on the player list.
I know I've seen Badspot complaining somewhere about people who packed a ton of RPG stats into their name.


Bingo. Finally found it.

How about you all get a clue and try actually designing something that people might actually want to see in a game.

What was the last real game you played where people had "[TEAM BLUE] [POLICE OFFICER] [LEVEL 3] XxSonicTailsxX" floating over their head?  There is no need to ever have this.

Identify teams by color.  Either color the name or color their torso and sleeves.

Identify jobs by appearance.  If they're a police officer, use the police uniform.  Criminal? Striped prison shirt.  Not enough options for you?  Use a mounted image with your own model.

The name display is for the player name.  That's it.


Granted I'm not sure how you'd do a health bar. Maybe a raycast loop to see if someone is looking at another player, and if so, bottom-print it to them.

Actually if it's for a combat heavy game mode, you could probably bottom-print their health bar whenever you attack them.
« Last Edit: October 11, 2012, 09:58:40 AM by -Jetz- »

Set their score as their health.