AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Gun Xp Mod + Unlocks Shop (https://forums.alliedmods.net/showthread.php?t=118796)

xbatista 02-14-2010 13:56

[L4D2] Gun Xp Mod + Unlocks Shop
 
2 Attachment(s)
-.Description.-

It displays menu with weapons, each weapon requires needed level, by killing enemy you get experience points. And with needed experience points you get level up!
-.Requirements.-

SDK Hooks 1.3 - Download pack for Left 4 Dead 2 game.
SourceMod >=1.3.4

-.Commands / Cvars.-

!level - To show your data info.
!guns - To re-open weapon menu.
!ul - Open Unlocks Shop.

gxm_saveby "0" - Save Data by : 1 = MySQL, 0 = SQLite.
gxm_savetype "2" - Save Data by : 0 = SteamID, 1 = IP, 2 = Name.

gxm_restrict_guns "1" - Restrict weapon picking, based on levels? 1 - Yes, 0 - No.
gxm_remove_guns "1" - Remove weapons from the ground? 1 - Yes, 0 - No.

gxm_xp_kill_infected "2" - XP for killing infected/entity.
gxm_xp_kill_survivor "5" - XP for killing survivor.
gxm_xp_kill_smoker "5" - XP for killing smoker.
gxm_xp_kill_boomer "5" - XP for killing boomer.
gxm_xp_kill_hunter "5" - XP for killing hunter.
gxm_xp_kill_spitter "5" - XP for killing spitter.
gxm_xp_kill_jockey "5" - XP for killing jockey.
gxm_xp_kill_charger "5" - XP for killing charger.
gxm_xp_kill_witch "5" - XP for killing witch.
gxm_xp_kill_tank "5" - XP for killing tank.

gxm_menu_time "30" - Time when the menu will be destroyed.
gxm_menu_delay "3.0" - Delay to diplay menu when player spawned.
gxm_menu_reopen "1" - Enable menu re-open by command !guns ? 1 - Yes, 0 - No.
gxm_menu_reopen_auto "180.0" - >0 - Amount of time that menu shall open, 0 - Don't reopen.

gxm_enable_top10 "1" - Enable !top10 ? 1 - Yes, 0 - No.

Note : Go to configs/databases.cfg to edit MySQL settings.

xbatista 02-14-2010 13:57

Re: [L4D2] Gun Xp Mod
 
It's only BETA for now. :)

kiwi87 02-14-2010 18:26

Re: [L4D2] Gun Xp Mod
 
Care to elaborate on this instruction?
"Note : Go to configs/databases.cfg to edit MySQL settings."

Something like this?
"xxx"
{
"xxx"
{
"driver" "mysql"
"host" "127.0.0.1"
"database" "xxx"
"user" "xxx"
"pass" "xxxx"
}

}

what should it be for yours to work?
name of the database?

>.<! thanks.

alexip121093 02-14-2010 22:23

Re: [L4D2] Gun Xp Mod
 
You need to install MYSQL

xbatista 02-15-2010 03:00

Re: [L4D2] Gun Xp Mod
 
Code:

        "default"
        {
                "driver"                        "default"
                "host"                                "HOST" // <-- your host "IP" adress
                "database"                        "DATABASE NAME" // <-- The database name
                "user"                                "USER" // <-- User of this host
                "pass"                                "PASSWORD" // <-- User's password
                //"timeout"                        "0"
                //"port"                        "0"
        }


kiwi87 02-15-2010 04:43

Re: [L4D2] Gun Xp Mod
 
Hello xbatista! :)
  • The plugin actually restricts the type of weapons you can use. Basically a lvl 0 can only use pistol. A level 10 maybe AK47?
  • Plugin allows you you to select your weapon at start which means you can use tier2 weapons even if the safe-room only have tier1, could be imbalanced especially Dead Center first map.
  • Another thing i notice is !guns doesn't seem to work. Only at start the menu pops by default.
  • Database trace xp by ip. Is it possible to make it trace by name? As clients ip could be dynamic and prone to changes
  • Some other perks i can think of from levels are
  1. More Health if higher level
  2. Can revive faster
  3. Basically unlock perks such as the one in perkmod? As weapons are kind of imbalanced unless you set the exp to really high to be able to select weapons at start :)
  • Probably something like !top10 to view the top level players like most MMORPG would do haha~
  • Auto create cfg would be nice too :oops:
As i'm using rank system now but often players ask me, whats rank for? I tell them, "self-achievement". If they ask me whats level for? I'll tell them. Perks :twisted:

Thanks for plugin i hope u can continue supporting it and eventually full release from beta! :mrgreen:

xbatista 02-15-2010 04:48

Re: [L4D2] Gun Xp Mod
 
Thanks! I'll correct bugs and add your requests.:crab:

kiwi87 02-15-2010 05:27

Re: [L4D2] Gun Xp Mod
 
Hey xbatista, you might wanna upload the .smx directly cause of the the color.inc it cannot be compiled by the web compiler :(

Haha let more people test this out~

xbatista 02-15-2010 06:09

Re: [L4D2] Gun Xp Mod
 
@kiwi87 Look at the Requirements, also needs to download SDK Hooks, compile gunxpmod.sp localy.

Btw
Quote:

The plugin actually restricts the type of weapons you can use. Basically a lvl 0 can only use pistol. A level 10 maybe AK47?
Yes, you can pick up guns only that ,which level you are.
Quote:

Another thing i notice is !guns doesn't seem to work. Only at start the menu pops by default.
Fixed.
Quote:

Database trace xp by ip. Is it possible to make it trace by name? As clients ip could be dynamic and prone to changes
Done, added new cvar.
Quote:

Probably something like !top10 to view the top level players like most MMORPG would do haha~
Done top10.
Quote:

Auto create cfg would be nice too
For what? :)

And about perks, there are already made in Approved Plugins.

alexip121093 02-15-2010 06:48

Re: [L4D2] Gun Xp Mod
 
if there are perks unlock in this plugin will be perfect.

eg 5 lv. more ammo reserve
10 lv . more ammo damage
12 lv . Fast Reloading
15 lv . exploive ammo


All times are GMT -4. The time now is 00:32.

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