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

[CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Artsemis
Junior Member
Join Date: Jul 2010
Location: Morgantown, WV
Plugin ID:
1851
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Buylevel implementation for GunGame:SM
Unapprover:
Reason for Unapproving:
OP unsupported - reported not to work
Old 08-02-2010 , 19:10   [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
Reply With Quote #1

Buylevel for GunGame:SM
by {cDS} Artsemis of cyber Death Squad

Description
This mod requires that the server be running GunGame:SM. Players will earn cash for each kill which allows them to purchase the next level when they have the required funds. The amount of money awarded per kill, the cost of each level, and the number of levels from the last that can't be bought off of can all be defined in the configuration file that gets generated when the plugin is first run.

CVAR/Command List
  • sm_gg_buylevel_version - Buylevel Version
  • sm_buylevel_kill_value - Amount of money to award for a kill
  • sm_buylevel_level_cost - Amount of money required to buy a level
  • sm_buylevel_num_restricted_levels - Number of levels from the last that cannot be bought off of
  • !buylevel - Instantly levels the player up and deducts the appropriate funds.
  • /buylevel - Same as !buylevel except your message won't show up in the chat box.

Code:
----------
Changelog
----------
2010-09-14 (v1.1)
* Replaced "number of restricted levels" with the ability to restrict specific weapons

2010-08-02 (v1.0)
* Initial Release
Dependencies
GunGame:SM 1.0.9.4+

Plans
- Add translations support / custom messages

Notes
Will not compile on forums as it requires GunGame:SM

Issues
I noticed after trying this out, players' guns would sometimes disappear -- though they would still fire and seems to correct itself after a round or two. Unfortunately, I upgraded to GG 1.0.9.4 at the same time as I started running this mod so I'm unsure of the cause of the issue. I can confirm, though, that it seems to happen to players that don't even use the buylevel command at all. I don't want to say it's an issue on GunGame's side 100% but it's something I'm keeping an eye on.


This is my first attempt at coding anything on SM, go easy on me.
Attached Files
File Type: zip gg_buylevel v1.1.zip (9.0 KB, 1013 views)

Last edited by Artsemis; 09-15-2010 at 23:02. Reason: New release
Artsemis is offline
Send a message via AIM to Artsemis
Warbucks
Senior Member
Join Date: Jun 2008
Location: Canada
Old 08-31-2010 , 12:49   Re: [CS:S] Buylevel (v1.0, 2010-08-02) ~ For GunGame:SM
Reply With Quote #2

Did you ever figure out why players weapons were disappearing?
Warbucks is offline
Artsemis
Junior Member
Join Date: Jul 2010
Location: Morgantown, WV
Old 09-04-2010 , 21:56   Re: [CS:S] Buylevel (v1.0, 2010-08-02) ~ For GunGame:SM
Reply With Quote #3

Sorry, I just got back from vacation and didn't have access to the web. I didn't, but I did notice in the gungame thread there were a few reports of the issue popping up from what I assume to be people not using this buylevel script. Whether it was a recent steam update or something in 1.0.9.4 of SM:GG (or the version right before it) I'm not sure... it doesn't appear to be an issue with buylevel, though.
__________________
{cDS} Artsemis
cyber Death Squad
Artsemis is offline
Send a message via AIM to Artsemis
nadrojcote
Senior Member
Join Date: Oct 2009
Old 09-12-2010 , 23:35   Re: [CS:S] Buylevel (v1.0, 2010-08-02) ~ For GunGame:SM
Reply With Quote #4

I am still using it, and actually have a request if possible,

something like this, a new cvar sm_buylevel_excludedlevels to set static level numbers that you cannot buy off of.
nadrojcote is offline
Artsemis
Junior Member
Join Date: Jul 2010
Location: Morgantown, WV
Old 09-15-2010 , 00:02   Re: [CS:S] Buylevel (v1.0, 2010-08-02) ~ For GunGame:SM
Reply With Quote #5

Quote:
Originally Posted by nadrojcote View Post
I am still using it, and actually have a request if possible,

something like this, a new cvar sm_buylevel_excludedlevels to set static level numbers that you cannot buy off of.
This was on the to do list but since there was a special request, it's done. =d
I did realize after coding the update that you said specific levels... I hope specific guns is ok. It should only matter if you use a random gun order but let me know please.
__________________
{cDS} Artsemis
cyber Death Squad
Artsemis is offline
Send a message via AIM to Artsemis
nadrojcote
Senior Member
Join Date: Oct 2009
Old 09-15-2010 , 17:08   Re: [CS:S] Buylevel (v1.0, 2010-08-02) ~ For GunGame:SM
Reply With Quote #6

yup that works thank!

was also wondering if there is anyway to hide !buylevel from being seen in chat when someone types it, so that people that are using !buylevel dont give it away.
nadrojcote is offline
Artsemis
Junior Member
Join Date: Jul 2010
Location: Morgantown, WV
Old 09-15-2010 , 17:49   Re: [CS:S] Buylevel (v1.0, 2010-08-02) ~ For GunGame:SM
Reply With Quote #7

No problem. =d

I'm not sure if there's a way to override the default functionality of a registered command in sourcemod, but by default !buylevel is the "announced" version and /buylevel is the "silent" one. Hopefully that works for you... I'm not sure if there's a way to disable the ! option.
__________________
{cDS} Artsemis
cyber Death Squad
Artsemis is offline
Send a message via AIM to Artsemis
Warbucks
Senior Member
Join Date: Jun 2008
Location: Canada
Old 09-23-2010 , 23:13   Re: [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
Reply With Quote #8

Something I noticed. Some people run both buylevel and knifefight on their servers. You can buy a level during a knife fight and depending on how many levels multi level is set to in the config (ie: the buylevel was your third kill, and multi level is set to three kills), you will gain the speed/health boost.

Knifefight should probably be modified, but you may be able to do a check/block yourself.
Warbucks is offline
Artsemis
Junior Member
Join Date: Jul 2010
Location: Morgantown, WV
Old 09-24-2010 , 19:06   Re: [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
Reply With Quote #9

Hey warbucks, I remember you from gg5 development =d

Anyways, good catch. I'm not exactly sure that's something that should be handled here because buylevel's purpose is to give you a level when used and nothing more. It would make more sense to me in knife fight also, but then again, knife fight can't be adding checks for every other mod's possibilities either.

I'm not sure he'd be up for it, but the most logical way to handle it would be for gg to have a parameter on the level up method that tells it if it was a kill or not -- having multi level bonuses only take effect for actual kills.
__________________
{cDS} Artsemis
cyber Death Squad
Artsemis is offline
Send a message via AIM to Artsemis
Whist
Member
Join Date: Sep 2010
Old 10-02-2010 , 09:02   Re: [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
Reply With Quote #10

I thank you for implementing this function into SourceMod. It was very popular in the past and it is highly received by members in my community, good work. Correct me if I am wrong but I thought !buylevel use to give you your next level's gun if you were alive. If so, do you plan on implementing this or should I just be using a !give plugin.

-Thanks
__________________
Whist is offline
Send a message via AIM to Whist
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 12:06.


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