AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM (https://forums.alliedmods.net/showthread.php?t=134264)

Artsemis 08-02-2010 19:10

[CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
 
1 Attachment(s)
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. :)

Warbucks 08-31-2010 12:49

Re: [CS:S] Buylevel (v1.0, 2010-08-02) ~ For GunGame:SM
 
Did you ever figure out why players weapons were disappearing?

Artsemis 09-04-2010 21:56

Re: [CS:S] Buylevel (v1.0, 2010-08-02) ~ For GunGame:SM
 
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.

nadrojcote 09-12-2010 23:35

Re: [CS:S] Buylevel (v1.0, 2010-08-02) ~ For GunGame:SM
 
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.

Artsemis 09-15-2010 00:02

Re: [CS:S] Buylevel (v1.0, 2010-08-02) ~ For GunGame:SM
 
Quote:

Originally Posted by nadrojcote (Post 1298043)
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.

nadrojcote 09-15-2010 17:08

Re: [CS:S] Buylevel (v1.0, 2010-08-02) ~ For GunGame:SM
 
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.

Artsemis 09-15-2010 17:49

Re: [CS:S] Buylevel (v1.0, 2010-08-02) ~ For GunGame:SM
 
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.

Warbucks 09-23-2010 23:13

Re: [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
 
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.

Artsemis 09-24-2010 19:06

Re: [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
 
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.

Whist 10-02-2010 09:02

Re: [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
 
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

Artsemis 10-04-2010 15:50

Re: [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
 
Thanks for the compliments, Whist. :)

I'm not quite sure if I understand your question, though. Can you please elaborate? !buylevel should indeed give your next level's gun if you're alive (assuming you're playing turbo mode). !give, on the other hand, would give your current weapon back with a full clip.

Whist 11-11-2010 10:15

Re: [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
 
Sorry, I have this subscribed to but apparently it never sent me an e-mail. Anyway, I was under the impression buylevel gave you your next gun whether it was turbo or not. I may be mistaken but this is what I recall from running my old server. If not, no big deal.

Artsemis 11-11-2010 22:46

Re: [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
 
I've never really played non-turbo so I can't say for certain how it used to function in previous versions. I'm simply using GunGame's level-up method which uses any configurations for your server to apply the rules and what happens when you level up.

What you're saying does make sense though so perhaps I'll add that... it shouldn't be difficult.

zipcore 03-06-2011 14:36

Re: [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
 
2 Attachment(s)
Here is my version of your plugin (works now)

New:
-sm_ggbuylevel_death_reward
-Disable buylevel if alive
-Disable buylevel if leading

eNjoY

Artsemis 04-27-2011 20:36

Re: [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
 
Ohh, just saw this -- great idea. If you don't mind I'll roll it into mine when I update it again.

cono 07-22-2014 13:14

Re: [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
 
any chance someone is able to configure this script with teambets? i have teambets while players are dead and when i win money and spawn next round, the money i won dissapears.

this is the teambet plugin:
https://forums.alliedmods.net/showth...hlight=teambet

Artsemis 03-03-2015 10:38

Re: [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
 
I just noticed this was unapproved with the reason "reported not to work". I'm not sure when this happened but I don't believe it to be accurate and I see no posts in this thread indicating that to be true. We still use it in my community and have no issues.

Krillin 10-20-2020 04:06

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

Originally Posted by Artsemis (Post 2269110)
I just noticed this was unapproved with the reason "reported not to work". I'm not sure when this happened but I don't believe it to be accurate and I see no posts in this thread indicating that to be true. We still use it in my community and have no issues.

We just got this today on our servers, the problem is the .sp will NOT compile today and I am not sure how long this has been going on. But here is the issue.

We just built our temporary servers within the past 45 days so SM and MM are the current build when I checked a few days ago. The version of GunGame is 1.2.16.0 (99.9% error free, one issue is a warning and he won't deal with it). One of the two errors are corrected but the 2nd issue is a warning and won't compile.

Code:

//// gg_buylevel.sp
//
// gg_buylevel.sp(55) : warning 234: symbol "FindSendPropOffs" is marked as deprecated: Use FindSendPropInfo instead, or HasEntProp if you just want to check for existence.
//
//
// gg_buylevel.sp(142) : error 181: function argument named 'WeaponId' differs from prototype
//
// 1 Error.
//
// Compilation Time: 0.73 sec
// ----------------------------------------

Line #142
Code:

public Action:GG_OnClientDeath(killer, victim, Weapons:WeaponId, bool:TeamKilled)
The second error will not go away no matter what we tried to do. So we revered the .sp back to the original file and only corrected the first issue (self explanatory).

I am not sure how this is going function with today's requirement. But if you need anything else from me, please let me know.

Krillin

Krillin 11-17-2021 00:37

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

Originally Posted by Artsemis (Post 2269110)
I just noticed this was unapproved with the reason "reported not to work". I'm not sure when this happened but I don't believe it to be accurate and I see no posts in this thread indicating that to be true. We still use it in my community and have no issues.

It may just be because the owner has not kept the plugin up-to-date making this plugin "abandoned" as you can see. I posted an issue from 10/2020 and here we are today 11/17/2021 and no one has suggested a fix for this issue. And we use this on CS:S and it still runs despite changes to the engine. The issue now is failing to compile and will be a matter of time before it breaks entirely.

Wish Us Luck!


All times are GMT -4. The time now is 23:25.

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