AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] BuyZone Simulator (https://forums.alliedmods.net/showthread.php?t=195387)

KawMAN 09-07-2012 00:05

[CS:GO] BuyZone Simulator
 
2 Attachment(s)
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 )

KawMAN 09-07-2012 00:06

Re: [CS:GO] BuyZone Simulator
 
2 Attachment(s)
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

Doc-Holiday 09-07-2012 06:55

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

zan.gamer 09-07-2012 12:38

Re: [CS:GO] BuyZone Simulator
 
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.

baijiaqing 09-08-2012 03:05

Re: [CS:GO] BuyZone Simulator
 
Can you please add a cvar to disable this?
Because I do not want to enable it on certain maps.

KawMAN 09-08-2012 23:31

Re: [CS:GO] BuyZone Simulator
 
New version.

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

Doc-Holiday 09-09-2012 00:40

Re: [CS:GO] BuyZone Simulator
 
Quote:

Originally Posted by KawMAN (Post 1794854)
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?

Taner 09-09-2012 05:26

Re: [CS:GO] BuyZone Simulator
 
Thanks !

AlfredSpain 09-14-2012 03:30

Re: [CS:GO] BuyZone Simulator
 
for all maps pls :D :D

Chaddcl0ps 09-14-2012 19:30

Re: [CS:GO] BuyZone Simulator
 
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.


All times are GMT -4. The time now is 07:29.

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