Raised This Month: $ Target: $400
 0% 

[L4D2] Tank, witch every map. Cvars and map variables


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blackalegator
Member
Join Date: Jan 2010
Old 12-09-2015 , 03:48   [L4D2] Tank, witch every map. Cvars and map variables
Reply With Quote #1

This is a copy of a thread from the general section. I didnt get any answers there, so I hope more people will see it here.
Dont look at the code, I only need to understand actual CVARs and map variables meanings


What do these variables mean? I am trying to understand logic behing this plugin's code: https://github.com/MatthewClair/sour...d_tankifier.sp

It uses a few main variables to calculate boss flow (And I am not sure what exactly does boss flow mean xD)

CVARS:
g_hVsBossBuffer = FindConVar("versus_boss_buffer");
g_hVsBossFlowMax = FindConVar("versus_boss_flow_max");
g_hVsBossFlowMin = FindConVar("versus_boss_flow_min");

Map vars:

new Float:fMinBanFlow = L4D2_GetMapValueInt("tank_ban_flow_min", -1) / 100.0;
new Float:fMaxBanFlow = L4D2_GetMapValueInt("tank_ban_flow_max", -1) / 100.0;

new iMinWitchFlow = L4D2_GetMapValueInt("witch_flow_min", -1);
new iMaxWitchFlow = L4D2_GetMapValueInt("witch_flow_max", -1);

So my question is what do these variables mean. To me it looks like versus_boss_flow_min/max define map segment (from 0.0 to 1.0) where any type of boss can spawn, while tank_ban_flow_min/max define a map segment where tanl cannot be spawned.

But I am not sure if this is true, also I am confused about witch_flow_min/max (why is there no 'ban' here?) and I didnt understand what does versus_boss_buffer do
__________________
I am Russian so DONT look at my english
blackalegator is offline
Send a message via Skype™ to blackalegator
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 17:08.


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