Raised This Month: $32 Target: $400
 8% 

[TF2] Experience bar [extracted from TF2 RPG]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Plugin ID:
4429
Plugin Version:
1.3
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin simply display a progress bar, that's all. [PART OF THE MOD TF2RPG]
    Old 11-29-2014 , 03:55   [TF2] Experience bar [extracted from TF2 RPG]
    Reply With Quote #1


    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.

    sm_levelhud 1 actually...





    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 View Post
    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 View Post
    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.
    Attached Files
    File Type: cfg tf2_rpg_exp.cfg (2.9 KB, 897 views)
    File Type: smx TF2_RPG_exp.smx (25.8 KB, 688 views)
    File Type: sp Get Plugin or Get Source (TF2_RPG_exp.sp - 715 views - 16.7 KB)
    File Type: zip TF2level_wi.zip (7.7 KB, 612 views)
    __________________
    Want to check my plugins ?

    Last edited by Arkarr; 05-01-2015 at 05:26. Reason: update plugin
    Arkarr is offline
    ClassicGuzzi
    Veteran Member
    Join Date: Oct 2013
    Location: Argentina
    Old 11-29-2014 , 13:57   Re: [TF2 (ANY)] Experience bar [extracted from TF2 RPG]
    Reply With Quote #2

    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()

    Last edited by ClassicGuzzi; 11-29-2014 at 14:08.
    ClassicGuzzi is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 11-29-2014 , 14:21   Re: [TF2 (ANY)] Experience bar [extracted from TF2 RPG]
    Reply With Quote #3

    Quote:
    Originally Posted by ClassicGuzzi View Post
    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.
    __________________
    Want to check my plugins ?

    Last edited by Arkarr; 11-29-2014 at 14:26.
    Arkarr is offline
    Marverlous
    Senior Member
    Join Date: May 2013
    Old 11-29-2014 , 14:40   Re: [TF2 (ANY)] Experience bar [extracted from TF2 RPG]
    Reply With Quote #4

    Can we have a screenshot? Will the Exp bar be above player's head? Visible for all to see?
    __________________
    Marverlous is offline
    ClassicGuzzi
    Veteran Member
    Join Date: Oct 2013
    Location: Argentina
    Old 11-29-2014 , 14:58   Re: [TF2 (ANY)] Experience bar [extracted from TF2 RPG]
    Reply With Quote #5

    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.

    Last edited by ClassicGuzzi; 11-29-2014 at 15:16.
    ClassicGuzzi is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 11-29-2014 , 16:41   Re: [TF2 (ANY)] Experience bar [extracted from TF2 RPG]
    Reply With Quote #6

    @Marverlous
    Yes, sure

    @ClassicGuzzi
    Update the OP
    __________________
    Want to check my plugins ?
    Arkarr is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 12-04-2014 , 13:59   Re: [TF2 (ANY)] Experience bar [extracted from TF2 RPG]
    Reply With Quote #7

    Updated ! See the main post to get all the news that bring the update 1.2 !
    __________________
    Want to check my plugins ?
    Arkarr is offline
    Azerja12
    Senior Member
    Join Date: Feb 2013
    Location: EU
    Old 03-02-2015 , 06:45   Re: [TF2] Experience bar [extracted from TF2 RPG]
    Reply With Quote #8

    What games is this tested on?

    Does it work for CS:GO?
    __________________
    Azerja12 is offline
    404UserNotFound
    BANNED
    Join Date: Dec 2011
    Old 03-02-2015 , 18:50   Re: [TF2] Experience bar [extracted from TF2 RPG]
    Reply With Quote #9

    Quote:
    Originally Posted by Azerja12 View Post
    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.
    404UserNotFound is offline
    Azerja12
    Senior Member
    Join Date: Feb 2013
    Location: EU
    Old 03-03-2015 , 01:45   Re: [TF2] Experience bar [extracted from TF2 RPG]
    Reply With Quote #10

    Quote:
    Originally Posted by abrandnewday View Post
    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"
    __________________
    Azerja12 is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 22:45.


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