Raised This Month: $51 Target: $400
 12% 

[L4D2] Gun Xp Mod + Unlocks Shop


Post New Thread Reply   
 
Thread Tools Display Modes
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 02-15-2010 , 12:04   Re: [L4D2] Gun Xp Mod
Reply With Quote #21

Update!
Fixed few bugs + added 4 new cvars:
gxm_enable_namec "1" - Enable Name changer, adds a level tag to your name ? 1 - Yes, 0 - No.

gxm_up_hp "2" - Amount of extra health level. Enable Health Upgrade ? >=1 - Yes, 0 - No.
gxm_up_ammo "15" - Amount of extra ammo level. Enable BpAmmo Upgrade ? >=1 - Yes, 0 - No.
gxm_up_ammopow "1" - Enable Ammo Power, gives extra laser sight etc.. ? 1 - Yes, 0 - No.
__________________
xbatista is offline
Send a message via Skype™ to xbatista
kiwi87
Member
Join Date: Sep 2009
Old 02-15-2010 , 18:20   Re: [L4D2] Gun Xp Mod
Reply With Quote #22

I have tested v1.2 and this is what i observed

  • Cvar :gxm_menu_reopen "1" but !guns only work once and to make it appear player have to switch to infected then back to survivor again for it to pop.
  • !top10 not working
  • Attaching Lvl to in game nick doesn't work too
  • Health gain and Ammo gain work
  • Possible to have cvar to disable weapon restriction and also a cvar to allow announce to all in chat?
Thank you for your effort so far
kiwi87 is offline
alexip121093
Senior Member
Join Date: Dec 2009
Location: Hong Kong
Old 02-15-2010 , 21:27   Re: [L4D2] Gun Xp Mod
Reply With Quote #23

Code:
 
public Action:HookSayCommand(client, Args)
 {
decl String:ClientName[MAX_LINE_WIDTH];
GetClientName(client, ClientName, sizeof(ClientName));
        new String:szText[MAX_TEXT_LENGTH];
        GetCmdArgString(szText, MAX_TEXT_LENGTH-1);
        StripQuotes(szText);
 
Format(szText, MAX_TEXT_LENGTH-1, "\x01%s \x03%s \x04[Lv. %d]\x01: %s", IsPlayerAlive(client) ? "" : "*DEAD*", ClientName,PlayerLevel[client], szText);
 
 
        for (new i = 1; i <= MaxClients; i++)
        {
if (!IsClientInGame(i)) continue;
if (IsClientBot(i)) continue;
            PrintToChat(i, szText);
        }
        return Plugin_Handled;
    }
I think just hook the chat and add the Level tag behind a player's name is better.
No need to change the player's name

Last edited by alexip121093; 02-15-2010 at 21:32.
alexip121093 is offline
Send a message via MSN to alexip121093
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 02-16-2010 , 06:15   Re: [L4D2] Gun Xp Mod
Reply With Quote #24

Quote:
Originally Posted by kiwi87 View Post
I have tested v1.2 and this is what i observed

  • Cvar :gxm_menu_reopen "1" but !guns only work once and to make it appear player have to switch to infected then back to survivor again for it to pop.
  • !top10 not working
  • Attaching Lvl to in game nick doesn't work too
  • Health gain and Ammo gain work
  • Possible to have cvar to disable weapon restriction and also a cvar to allow announce to all in chat?
Thank you for your effort so far
Re-open menu means that if you didn't choose from menu something or menu is destroyed,you can re-open it.
Top10, redownload package and try now if it works.
Hmm about weapon restriction maybe no,because it's basede on the mod.

Write what exactly announcements you want..?

Quote:
Originally Posted by alexip121093 View Post
Code:
 
public Action:HookSayCommand(client, Args)
 {
decl String:ClientName[MAX_LINE_WIDTH];
GetClientName(client, ClientName, sizeof(ClientName));
        new String:szText[MAX_TEXT_LENGTH];
        GetCmdArgString(szText, MAX_TEXT_LENGTH-1);
        StripQuotes(szText);
 
Format(szText, MAX_TEXT_LENGTH-1, "\x01%s \x03%s \x04[Lv. %d]\x01: %s", IsPlayerAlive(client) ? "" : "*DEAD*", ClientName,PlayerLevel[client], szText);
 
 
        for (new i = 1; i <= MaxClients; i++)
        {
if (!IsClientInGame(i)) continue;
if (IsClientBot(i)) continue;
            PrintToChat(i, szText);
        }
        return Plugin_Handled;
    }
I think just hook the chat and add the Level tag behind a player's name is better.
No need to change the player's name
But we want to display it also in TAB button :0
__________________
xbatista is offline
Send a message via Skype™ to xbatista
alexip121093
Senior Member
Join Date: Dec 2009
Location: Hong Kong
Old 02-16-2010 , 06:19   Re: [L4D2] Gun Xp Mod
Reply With Quote #25

Quote:
Originally Posted by xbatista View Post
Re-open menu means that if you didn't choose from menu something or menu is destroyed,you can re-open it.
Top10, redownload package and try now if it works.
Hmm about weapon restriction maybe no,because it's basede on the mod.

Write what exactly announcements you want..?


But we want to display it also in TAB button :0
Then just add a cvar to switch between this 2 modes

Since some Rank system track Player's name, so change their name will lose their rank record

Last edited by alexip121093; 02-16-2010 at 06:23.
alexip121093 is offline
Send a message via MSN to alexip121093
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 02-16-2010 , 06:29   Re: [L4D2] Gun Xp Mod
Reply With Quote #26

Quote:
Originally Posted by alexip121093 View Post
Then just add a cvar to switch between this 2 modes

Since some Rank system track Player's name, so change their name will lose their rank record
You're right, but I'll change name back when they disconnect
PHP Code:
public OnClientDisconnect(client)
{
    if ( 
IsClientInGame(client) && !IsFakeClient(client) )
    {
        if ( 
GetConVarInt(CvarEnableNameChanger) )
        {
            
SetClientInfoclient"name"szPName);
        }

        
SaveData(client)
    }

__________________
xbatista is offline
Send a message via Skype™ to xbatista
kiwi87
Member
Join Date: Sep 2009
Old 02-16-2010 , 08:04   Re: [L4D2] Gun Xp Mod
Reply With Quote #27

Quote:
Originally Posted by xbatista View Post
Re-open menu means that if you didn't choose from menu something or menu is destroyed,you can re-open it.
Top10, redownload package and try now if it works.
Hmm about weapon restriction maybe no,because it's basede on the mod.

Write what exactly announcements you want..?
  1. !top10 is working Would be good if its updated regularly maybe every 10seconds? Its not sorted out in highest level being top too.
  2. !guns still not working for me Only pops when i load and if i switch to infected then switch back to survivor
  3. Yeah if its meant to run with weapon restriction then it might not be suitable for versus servers I'm a versus host lol
  4. Announcements such as:
  • [Lvl13]Kiwi87 has earned 15 xp for killing [Lvl14]Factor the Jockey.
  • [Lvl14]Kiwi has gained a level is now Level 14!
  • You have leveled up! Max Health: 114, Max Extra Ammo: 70!

Last edited by kiwi87; 02-16-2010 at 08:20.
kiwi87 is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 02-16-2010 , 09:04   Re: [L4D2] Gun Xp Mod
Reply With Quote #28

Redownload package, also when you put that new version can you show me new screen of top10?

You can pick up guns if you have that level gun, whats wrong with versus?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
kiwi87
Member
Join Date: Sep 2009
Old 02-16-2010 , 09:47   Re: [L4D2] Gun Xp Mod
Reply With Quote #29

Quote:
Originally Posted by xbatista View Post
Redownload package, also when you put that new version can you show me new screen of top10?

You can pick up guns if you have that level gun, whats wrong with versus?


Seems like it sorted by Level which is correct but not exp hehe.
Theres 20/90 below the 10/90.

In versus its crucial to be able to use the guns within the environment, as its really competitive and needs lots of balancing. As for coop, the restriction wouldn't play a very huge handicap.
kiwi87 is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 02-16-2010 , 10:02   Re: [L4D2] Gun Xp Mod
Reply With Quote #30

Quote:
Seems like it sorted by Level which is correct but not exp hehe.
Theres 20/90 below the 10/90.
Will correct in the next update
Quote:
In versus its crucial to be able to use the guns within the environment, as its really competitive and needs lots of balancing. As for coop, the restriction wouldn't play a very huge handicap.
Don't know ,it's the same ^^
__________________
xbatista is offline
Send a message via Skype™ to xbatista
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 09:18.


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