Author Topic: Click-Stats [v2.2]  (Read 6886 times)


Can't you use percentages of the max hp instead of numbers so it would work for custom player types?

This would work great for a Star Trek tricorder mod :D

Here's food for thought-
Make one of those airport wands that scans the player, and displays the weapons the player is carrying, and possible ammo they are using.


This is awesome! I plan on using something like this for my CityRPG.

Your health thing could use some work.

You currently have this:
Code: [Select]
%health = %target.getDatablock().maxDamage - %target.getDamageLevel();
You should use this:
Code: [Select]
%health = mFloor(100 - %target.getDamagePercent() * 100);This will give you the percent of the player's health, which allows it to work with mods that artificially raise the player's health.



Also, I would recommend not doing stuff like this:
Code: [Select]
if(%health < 36){%health = "\c0" @ %health;}else{if(%health < 71){%health = "\c3" @ %health;}else{if(%health < 101){%health = "\c2" @ %health;}}}It's hard to read and there's no reason to put it all in one line.

i addressed the second thing on the first page

the first thing is really good to know

Bump for v2.2


NEW FEATURES:
 - added score to stats
 - added rtb prefs to enable/disable each stat separately
 - health stat now supports custom player-types with health over 100
 - added '/stats' to check your own stats


Get your copy of Script_Clickstats.zip v2.2 HERE!
« Last Edit: May 02, 2012, 07:30:03 PM by 420 »

Hey

Make a version on where it can be only viewed by teammates

Hey

Make a version on where it can be only viewed by teammates
Support this, please add it to gamemode slayer.

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
• I like this and i will download •
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Nice but I got a thing against any type of drug related stuff.Not DLing,sorry,420

Nice but I got a thing against any type of drug related stuff.Not DLing,sorry,420
what? the screenshot is just showing someone named thc, thats like saying you wouldn't buy a game because someone who was on drugs already bought a copy

Nice but I got a thing against any type of drug related stuff.Not DLing,sorry,420

You're a dumbass