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

[L4D & L4D2] Health Cabinet (1.12) [23-Apr-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Machine
Senior Member
Join Date: Apr 2010
Old 01-14-2012 , 17:17   Re: [L4D & L4D2] Health Cabinet (1.1) [31-Dec-2011]
Reply With Quote #11

Hey Silvers, cool plugin. How about you use a bitflag for setting sm_cabinet?

There was a few plugins that do this. The ones that come to mind is Atomic Strykers spawn uncommon infected plugin and DJ Wests Charger power plugin.
Machine is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 01-14-2012 , 18:45   Re: [L4D & L4D2] Health Cabinet (1.1) [31-Dec-2011]
Reply With Quote #12

I would rather a random chance of them spawning, and not a specified amount each one... maybe I'll add both.
__________________
Silvers is offline
Machine
Senior Member
Join Date: Apr 2010
Old 01-14-2012 , 19:22   Re: [L4D & L4D2] Health Cabinet (1.1) [31-Dec-2011]
Reply With Quote #13

Oh ok, that makes sense.
Machine is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-03-2012 , 06:20   Re: [L4D & L4D2] Health Cabinet (1.3) [03-Mar-2012]
Reply With Quote #14

Plugin updated, this looks more confusing than it is.

Quote:
1.3
- Added command "sm_cabinetglow" to see where cabinets are placed.
- Added command "sm_cabinettele" to teleport to a cabinet.
- Added cvar "l4d_cabinet_spawn_adren" to set the chance of spawning adrenaline.
- Added cvar "l4d_cabinet_spawn_defib" to set the chance of spawning defibrillators.
- Added cvar "l4d_cabinet_spawn_first" to set the chance of spawning first aid kits.
- Added cvar "l4d_cabinet_spawn_pills" to set the chance of spawning pain pills.
- Changed command "sm_cabinet" and "sm_cabinetsave" usage: sm_cabinetsave <first> <pills> <adren> <defib>.
- Changed default values of some cvars.
- Changed the data config format. Please use the "sm_silvercfg" plugin to convert reformat the config.
- Removed cvar "l4d_cabinet_type"
- Removed cvar "l4d_cabinet_type1"
- Removed cvar "l4d_cabinet_type2"

Updating to 1.3:
  • If you saved cabinets, the old config cannot be read. Use the sm_silvercfg plugin to reformat the config.
    1. Install the plugin, 2. run the command sm_silvercfg, 3. delete the plugin.
    The old data config is saved as l4d_cabinet.old.cfg.
  • Delete the old cvar config as new cvars have been added (or manually add them).
__________________

Last edited by Silvers; 03-03-2012 at 06:24.
Silvers is offline
matrixmark
Senior Member
Join Date: Jun 2010
Old 03-17-2012 , 06:35   Re: [L4D & L4D2] Health Cabinet (1.3) [03-Mar-2012]
Reply With Quote #15

Ugh installed this as per the instructions but wont let me use.

Just says I dont have access but I do...



Any ideas?


EDIT: Seems I also had to add myself to admins_simple.ini O.O soon as I did that, it now works. I thought sbans would be sufficient.
EDIT2: Would there be a way to add this to the admin menu? - thanks

Last edited by matrixmark; 03-17-2012 at 06:52.
matrixmark is offline
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 04-10-2012 , 17:56   Re: [L4D & L4D2] Health Cabinet (1.3) [03-Mar-2012]
Reply With Quote #16

sm_cabinetdel - It doesn't delete it from the config...
__________________
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
matrixmark
Senior Member
Join Date: Jun 2010
Old 04-11-2012 , 04:04   Re: [L4D & L4D2] Health Cabinet (1.3) [03-Mar-2012]
Reply With Quote #17

Quote:
Originally Posted by Marcus101RR View Post
sm_cabinetdel - It doesn't delete it from the config...
I think you need sm_cabinetwipe to remove from config.

You can use cabdel if the cab is saved in the config and you are looking at the cabinet.

Code:
sm_cabinet        // Spawns a temporary Health Cabinet at your crosshair. 
sm_cabinetsave    // Spawns a Health Cabinet at your crosshair and saves to config. Usage: sm_cabinetsave <first> <pills> <adren> <defib>. 
sm_cabinetlist    // Displays a list of Health Cabinets spawned by the plugin and their locations. 
sm_cabinetdel     // Removes the Health Cabinet you are aiming at and deletes from the config if saved. 
sm_cabinetclear   // Removes all Health Cabinets from the current map. 
sm_cabinetwipe    // Removes all Health Cabinets from the current map and deletes them from the config. 


Sorry if I misunderstood.... just trying to help

Last edited by matrixmark; 04-11-2012 at 04:07.
matrixmark is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-11-2012 , 08:34   Re: [L4D & L4D2] Health Cabinet (1.3) [03-Mar-2012]
Reply With Quote #18

Marcus is right the current version is broken as I've not bothered to upload 20 plugin updates. It should and does delete from the config but not always. Will upload one day.
__________________
Silvers is offline
Dont Fear The Reaper
Member
Join Date: Nov 2011
Old 05-17-2012 , 17:05   Re: [L4D & L4D2] Health Cabinet (1.4) [10-May-2012]
Reply With Quote #19

Would be nice if you could add an option to make it spawn the same items in the same cabinets for both rounds of a map, so no team gets an advantage.

Means only randomize the item spawns and cabinet positions for the first round, then store them and spawn the exact stuff for the second round.

Else it can happen that one team gets 4 meds and the other team nothing etc. But maybe just as an optional setting, so those who want it totally random can leave it like it is.
Dont Fear The Reaper is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-01-2012 , 02:13   Re: [L4D & L4D2] Health Cabinet (1.5) [01-Jun-2012]
Reply With Quote #20

You're very lucky! Thanks very much for helping me add and test the Cabinet spawn / item fairness Versus.

1.5 (01-Jun-2012)
- Added cvar "l4d_cabinet_glow_color" to set the glow color, L4D2 only.
- Fixed bugs with deleting Cabinets.
- Prevention for empty Cabinets, now spawns 1 second after opening when bugged.
- Versus games now spawn the same cabinets and items for both teams - Requested by "Dont Fear The Reaper"
__________________
Silvers 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 19:16.


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