[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
Code:
---------- 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. :) |
Re: [CS:S] Buylevel (v1.0, 2010-08-02) ~ For GunGame:SM
Did you ever figure out why players weapons were disappearing?
|
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.
|
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. |
Re: [CS:S] Buylevel (v1.0, 2010-08-02) ~ For GunGame:SM
Quote:
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. |
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. |
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. |
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. |
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. |
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 |
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. |
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.
|
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. |
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 |
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.
|
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 |
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.
|
Re: [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
Quote:
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 Code:
public Action:GG_OnClientDeath(killer, victim, Weapons:WeaponId, bool:TeamKilled) 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 |
Re: [CS:S] Buylevel (v1.1, 2010-09-14) ~ For GunGame:SM
Quote:
Wish Us Luck! |
All times are GMT -4. The time now is 23:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.