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

[CS:GO] BuyZone Simulator


Post New Thread Reply   
 
Thread Tools Display Modes
Author
KawMAN
SourceMod Donor
Join Date: Sep 2007
Location: Cracov
Plugin ID:
3221
Plugin Version:
1.2.1
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Enable buyzones on maps that don't have them
    Old 09-07-2012 , 00:05   [CS:GO] BuyZone Simulator
    Reply With Quote #1

    Hi,
    I wrote a plugin that simulate buyzone on maps that don't have it, simply with this you can buy weapons on maps such as de_lake, de_bank de_safehouse etc.

    Installation:
    - Make sure you have installed SDKHooks extensions
    - Download & put buyzonesimulator.smx into plugins folder
    Plugin will start on maps without BuyZone.

    Cvars:
    sm_bzsimulator - Buyzone simulator state control. 0 - Disabled, 1 - Enabled on maps without buyzone, 2 - Enabled on all maps , default 1.
    sm_bzsimulator_range - Simulated buyzone range, default 20.0, 0 = unlimited.

    Notes:
    - Plugin will create personal buyzone for each player every spawn, buyzone has limited range.
    - If you want to reload plugin, do this twice or manually unload and load it, changes will take effect on new round.
    - After mp_buytime, plugin will disable hooks and players will be unable to buy until next round
    - Plugin will work only on maps without buyzone
    - Plugin can try to prevent showing buy menu when USE key is pressed in buyzone range, but for that BLOCK_USEBUY compile switch must be set to 1 or 2. 1 = block on simulated buyzones, 2 = block on all. Version compiled with BLOCK_USEBUY 2 is attached in SECOND post (buyzonesimulator.smx)

    Screenshots:
    http://steamcommunity.com/sharedfile...&insideModal=0
    http://steamcommunity.com/sharedfile...&insideModal=0
    http://steamcommunity.com/sharedfile...&insideModal=0
    Feedback always welcome.

    You can test it on my server (below, first one )
    Attached Files
    File Type: sp Get Plugin or Get Source (buyzonesimulator.sp - 1443 views - 8.9 KB)
    File Type: smx buyzonesimulator.smx (6.6 KB, 1570 views)
    __________________

    Last edited by KawMAN; 09-20-2012 at 16:35. Reason: update - ready to review
    KawMAN is offline
    Send a message via ICQ to KawMAN Send a message via Skype™ to KawMAN
    KawMAN
    SourceMod Donor
    Join Date: Sep 2007
    Location: Cracov
    Old 09-07-2012 , 00:06   Re: [CS:GO] BuyZone Simulator
    Reply With Quote #2

    Changelog:

    1.2.1 - 19.09.2012
    - Fixed, Now should work on all maps, sry for that
    - Added BLOCK_USEBUY compile switch, see notes

    1.2.0 - 15.09.2012
    - Plugin can now work on all maps, set sm_bzsimulator to 2
    - Fixed possibility to earlier buy time expire if previous round was quick

    1.1.5 - 9.09.2012 ( buyzonesimulator_old115.sp )
    - Added cvar: sm_bzsimulator - Enable Disable Plugin
    - Added cvar: sm_bzsimulator_range - Buyzone range
    - Added possibility to have unlimited buyzone range

    1.1.2 - 7.09.2012
    - Fix: Timer not checking if player is In Game causing error if not
    - Fix: Hooks moved to Plugin Start and removed unhook on Plugin End, this was causing errors, seams like SM is unloading hooks before OnPluginEnd

    1.1.0 - 6.09.2012
    - Public Release

    buyzonesimulator.smx attached here is compiled with BLOCK_USEBUY 2
    Major old versions attached below
    Attached Files
    File Type: sp Get Plugin or Get Source (buyzonesimulator_old115.sp - 1416 views - 7.0 KB)
    File Type: smx buyzonesimulator.smx (6.8 KB, 669 views)
    __________________

    Last edited by KawMAN; 09-19-2012 at 05:42. Reason: update to 1.2.1
    KawMAN is offline
    Send a message via ICQ to KawMAN Send a message via Skype™ to KawMAN
    Doc-Holiday
    AlliedModders Donor
    Join Date: Jul 2007
    Old 09-07-2012 , 06:55  
    Reply With Quote #3

    I will test this out when i get home thanks. Possible to maybe make one large buyzone on whole map for everyone? Maybe have a setting to go between this and every where
    Doc-Holiday is offline
    zan.gamer
    SourceMod Donor
    Join Date: Jan 2011
    Old 09-07-2012 , 12:38   Re: [CS:GO] BuyZone Simulator
    Reply With Quote #4

    The plugin seems to work as advertised. I am seeing the following in my error logs.

    Code:
     
    L 09/07/2012 - 09:07:24: [SM] Native "UnhookEvent" reported: Invalid hook callback specified for game event "player_spawn"
    L 09/07/2012 - 09:07:24: [SM] Displaying call stack trace for plugin "buyzonesimulator.smx":
    L 09/07/2012 - 09:07:24: [SM]   [0]  Line 137, buyzonesimulator.sp::OnMapEnd()
     
    L 09/07/2012 - 09:24:58: [SM] Native "UnhookEvent" reported: Invalid hook callback specified for game event "round_end"
    L 09/07/2012 - 09:24:58: [SM] Displaying call stack trace for plugin "buyzonesimulator.smx":
    L 09/07/2012 - 09:24:58: [SM]   [0]  Line 139, buyzonesimulator.sp::OnMapEnd()
    Update: I saw a new version posted this morning; will test again.

    Last edited by zan.gamer; 09-07-2012 at 12:40.
    zan.gamer is offline
    baijiaqing
    Member
    Join Date: Jul 2010
    Old 09-08-2012 , 03:05   Re: [CS:GO] BuyZone Simulator
    Reply With Quote #5

    Can you please add a cvar to disable this?
    Because I do not want to enable it on certain maps.
    baijiaqing is offline
    KawMAN
    SourceMod Donor
    Join Date: Sep 2007
    Location: Cracov
    Old 09-08-2012 , 23:31   Re: [CS:GO] BuyZone Simulator
    Reply With Quote #6

    New version.

    - Added cvar: sm_bzsimulator - Enable Disable Plugin
    - Added cvar: sm_bzsimulator_range - Buyzone range, default 20.0, 0 = unlimited
    __________________

    Last edited by KawMAN; 09-08-2012 at 23:39.
    KawMAN is offline
    Send a message via ICQ to KawMAN Send a message via Skype™ to KawMAN
    Doc-Holiday
    AlliedModders Donor
    Join Date: Jul 2007
    Old 09-09-2012 , 00:40   Re: [CS:GO] BuyZone Simulator
    Reply With Quote #7

    Quote:
    Originally Posted by KawMAN View Post
    New version.

    - Added cvar: sm_bzsimulator - Enable Disable Plugin
    - Added cvar: sm_bzsimulator_range - Buyzone range, default 20.0, 0 = unlimited
    Thanks will do some testing.. and i prolly wouldnt upload the smx just explain how to compile locally

    works awesome!!! maybe a cvar to enable for all maps vs just ones without buyzones?

    Last edited by Doc-Holiday; 09-09-2012 at 00:55.
    Doc-Holiday is offline
    Taner
    Member
    Join Date: Jun 2009
    Old 09-09-2012 , 05:26   Re: [CS:GO] BuyZone Simulator
    Reply With Quote #8

    Thanks !
    Taner is offline
    AlfredSpain
    Senior Member
    Join Date: Oct 2010
    Old 09-14-2012 , 03:30   Re: [CS:GO] BuyZone Simulator
    Reply With Quote #9

    for all maps pls
    AlfredSpain is offline
    Chaddcl0ps
    New Member
    Join Date: Oct 2011
    Old 09-14-2012 , 19:30   Re: [CS:GO] BuyZone Simulator
    Reply With Quote #10

    Works on my server, but sometimes the buy zone will only last for about half a second. I have to reload the plugin to get it to work again for the duration of the buy time.
    Chaddcl0ps is offline
    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 02:20.


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