AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Experience bar [extracted from TF2 RPG] (https://forums.alliedmods.net/showthread.php?t=252254)

Arkarr 11-29-2014 03:55

[TF2] Experience bar [extracted from TF2 RPG]
 
12 Attachment(s)
http://img2.wikia.nocookie.net/__cb2.../e3/XpBar2.png
This is NOT the experience bar of the plugin
Description :

Simply display a experience bar for each player, nothing more, it doesn't add any advantage on players.
Also, I know there is another plugin who do that as well, but this one as a config file for each kills type + exp par weapon kill etc...
+ experience is saved via cookies

Plugin extracted from TF2 RPG.

http://tf2serverofarkarr.no-ip.biz/uploads/default.png sm_levelhud 1 actually...

http://tf2serverofarkarr.no-ip.biz/u.../levelhud2.png

http://tf2serverofarkarr.no-ip.biz/uploads/none.png

Cvar & installation


Commands :
sm_resetlevel - reset your levels to 0;
sm_levelhud - change the HUD of your levels actually, there is only 2 of them.
sm_addexp - add a ammount of exp on a player. [ADMIN FLAG: CHEATS]
sm_subexp - substract a ammount of EXP on a player. [ADMIN FLAG: CHEATS]
sm_setexp - set a ammount of EXP on a player or group of players. [ADMIN FLAG: CHEATS]
Usage :
sm_setexp <target> <ammount of exp> <OPTIONAL:level>

<target> - The player or group of player
<ammount of exp> - Ammount of exp to set, for exemple : 100, use integer and NOT double
<OPTIONAL:level> - The level to set exp on, for exemple : !setexp Arkarr 100 14 will set Arkarr's level to 14 with 100 exp.
Cvar & installation

Cvar :
None.
Installation :

1) Put TF2_RPG_exp.smx in your plugins folder.
2) Put tf2_rpg_exp.cfg in your config folder.
3) Configure tf2_rpg_exp.cfg as you want. [HIGLY RECOMMENDED]
4) Add a database entry in your database.cfg named as "TF2RPG_LEVEL_wi" !!!
5) Upload the web interface on your host.
6) Edit the config.php file !
7) Reload plugins folder, restart map or restart server.

Bugs :

STATUS: FIXED
Quote:

Originally Posted by ClassicGuzzi (Post 2229549)
Edit: ahmm the exp should be for player or for class? because changing class reset your exp for that level but not not the level, and going back to your old class doesn't bring the exp back.

Request :

STATUS: Under work
Quote:

Originally Posted by ClassicGuzzi (Post 2229549)
Just some suggestions:

sm_levelhud 0 should disable the hud, so if someone don't want to use it he/she could just disable it. -> sm_levelhud

I don't know if this is on purpose but the hud wont show until the client use sm_levelhud 1 or 2, it would be awesome if the hud was shown by default. -> FIXED

Maybe support for buildings destroyed, life healed (medic and engi) and teleports, and points captured/defended maybe? -> UNDER WORK

A command for admins that let me subtract or add exp/lvls from players so I could just exchange levels for prices in my server. -> sm_setexp

Logs :

1.0 : First version.
1.1 : Fixed bug of ClassicGuzzi
1.2 : Added all request + fixed some minors bugs + code improvement.
1.3 : Added the web interface.

ClassicGuzzi 11-29-2014 13:57

Re: [TF2 (ANY)] Experience bar [extracted from TF2 RPG]
 
I will try it right now!
btw normal kills/assist don't give exp?

Edit: My bad, I didn't read the rest of the cfg, nevermind haha

Edit2: this
Quote:

L 11/29/2014 - 16:06:25: [SM] Native "GetEntPropEnt" reported: Property "m_hActiveWeapon" not found (entity 0/worldspawn)
L 11/29/2014 - 16:06:25: [SM] Displaying call stack trace for plugin "TF2_RPG_exp.smx":
L 11/29/2014 - 16:06:25: [SM] [0] Line 170, C:\Users\Arkarr\Desktop\scripting\TF2_RPG_exp .sp::Event_PlayerDeath()
L 11/29/2014 - 16:07:05: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalid
L 11/29/2014 - 16:07:05: [SM] Displaying call stack trace for plugin "TF2_RPG_exp.smx":
L 11/29/2014 - 16:07:05: [SM] [0] Line 171, C:\Users\Arkarr\Desktop\scripting\TF2_RPG_exp .sp::Event_PlayerDeath()

Arkarr 11-29-2014 14:21

Re: [TF2 (ANY)] Experience bar [extracted from TF2 RPG]
 
Quote:

Originally Posted by ClassicGuzzi (Post 2229532)
I will try it right now!
btw normal kills/assist don't give exp?

Edit: My bad, I didn't read the rest of the cfg, nevermind haha

Edit2: this

He! Thanks for testing, waiting for your feedbacks / future idea !

EDIT: Fixed.

Marverlous 11-29-2014 14:40

Re: [TF2 (ANY)] Experience bar [extracted from TF2 RPG]
 
Can we have a screenshot? Will the Exp bar be above player's head? Visible for all to see?

ClassicGuzzi 11-29-2014 14:58

Re: [TF2 (ANY)] Experience bar [extracted from TF2 RPG]
 
Just some suggestions:

sm_levelhud 0 should disable the hud, so if someone don't want to use it he/she could just disable it.

I don't know if this is on purpose but the hud wont show until the client use sm_levelhud 1 or 2, it would be awesome if the hud was shown by default.

Maybe support for buildings destroyed, life healed (medic and engi) and teleports, and points captured/defended maybe?

A command for admins that let me subtract or add exp/lvls from players so I could just exchange levels for prices in my server.

Awesome work btw!

Edit: ahmm the exp should be for player or for class? because changing class reset your exp for that level but not not the level, and going back to your old class doesn't bring the exp back.

Arkarr 11-29-2014 16:41

Re: [TF2 (ANY)] Experience bar [extracted from TF2 RPG]
 
@Marverlous
Yes, sure

@ClassicGuzzi
Update the OP

Arkarr 12-04-2014 13:59

Re: [TF2 (ANY)] Experience bar [extracted from TF2 RPG]
 
Updated ! See the main post to get all the news that bring the update 1.2 !

Azerja12 03-02-2015 06:45

Re: [TF2] Experience bar [extracted from TF2 RPG]
 
What games is this tested on?

Does it work for CS:GO?

404UserNotFound 03-02-2015 18:50

Re: [TF2] Experience bar [extracted from TF2 RPG]
 
Quote:

Originally Posted by Azerja12 (Post 2268551)
What games is this tested on?

Does it work for CS:GO?

Should work for any games that have HUD text, though you may need to code in game-based checks and then do switch statements based on the game for the HUD text displays.

Death events may also vary by game, so that would have to be set up as well.

As for this plugin, very nice. I wanted to do this myself for my server but I never got around to it. SQL compatibility would be wonderful.

Azerja12 03-03-2015 01:45

Re: [TF2] Experience bar [extracted from TF2 RPG]
 
Quote:

Originally Posted by abrandnewday (Post 2268859)
Should work for any games that have HUD text, though you may need to code in game-based checks and then do switch statements based on the game for the HUD text displays.

Death events may also vary by game, so that would have to be set up as well.

As for this plugin, very nice. I wanted to do this myself for my server but I never got around to it. SQL compatibility would be wonderful.

I am kind of confused considering the title of the plugin says TF2 but the plugin description says "ANY"


All times are GMT -4. The time now is 16:29.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.