Raised This Month: $ Target: $400
 0% 

[L4D2 & L4D] Airdrop


Post New Thread Reply   
 
Thread Tools Display Modes
Gold Fish
Senior Member
Join Date: Mar 2020
Old 02-09-2022 , 12:11   Re: [L4D2 & L4D] Airdrop
Reply With Quote #151

BHaType, Please add Skybox check when Drop Ayirdrop by timer

I propose to embed this check in the GetRandomPlayer() func

PHP Code:
stock int GetRandomPlayer()
{
    
int []players = new int[MaxClients 1];
    
int count;
    
float vOrigin[3], vAngles[3];

    
    for( 
int i 1<= MaxClientsi++ )
    {
        if ( 
IsClientInGame(i) && GetClientTeam(i) == && IsPlayerAlive(i))
        {
            
GetClientEyePosition((i), vOrigin);
            
GetClientAbsAngles((i), vAngles);
            if (
GetSkyOrigin(vOriginvOriging_Globals.skyboxonly)) players[count++] = i;
        }
    }
    
    if ( !
count )
        return -
1;
    
    return 
players[GetRandomInt(0count 1)];

__________________
-

PHP Code:
public OnClientConnect(int Client) {
    
KickClient(Client"sorry");


Last edited by Gold Fish; 02-09-2022 at 12:37.
Gold Fish is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 02-12-2022 , 19:03   Re: [L4D2 & L4D] Airdrop
Reply With Quote #152

Quote:
Originally Posted by Gold Fish View Post
Please add Skybox check when Drop Ayirdrop by timer
Thanks, fixed
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
WhatsAnName
Member
Join Date: Jun 2018
Old 02-12-2022 , 22:35   Re: [L4D2 & L4D] Airdrop
Reply With Quote #153

added tank on death airdrop chance


PHP Code:
// This file was auto-generated by SourceMod (v1.10.0.6528)
// ConVars for plugin "l4d2_airdrop_on_tank.smx"


// Chace airdrop of tank
// -
// Default: "50"
airdrop_tank_chance "50" 
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_airdrop_on_tank.sp - 166 views - 921 Bytes)
WhatsAnName is offline
sonic155
Senior Member
Join Date: Mar 2019
Old 02-13-2022 , 01:52   Re: [L4D2 & L4D] Airdrop
Reply With Quote #154

how can i get it to where only one type drop comes as i would like the breakble boxs rather then the one that are opened

~~~~~

log report


AI/bots do not seem to understand any gun type drop from the boxs as if they dont see them from ones that you {push} to open but they see the ones from {break} boxs

Last edited by sonic155; 02-13-2022 at 02:12. Reason: pew
sonic155 is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 02-13-2022 , 06:18   Re: [L4D2 & L4D] Airdrop
Reply With Quote #155

Quote:
Originally Posted by sonic155 View Post
how can i get it to where only one type drop comes as i would like the breakble boxs rather then the one that are opened
You can delete that type entire or change "droptype" key to "breakable"
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
WhatsAnName
Member
Join Date: Jun 2018
Old 02-14-2022 , 02:20   Re: [L4D2 & L4D] Airdrop
Reply With Quote #156

there's a brief lag when the airdrop gets called on a new map (after the first they don't cause the small freeze)
WhatsAnName is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 02-15-2022 , 00:35   Re: [L4D2 & L4D] Airdrop
Reply With Quote #157

Quote:
Originally Posted by WhatsAnName View Post
there's a brief lag when the airdrop gets called on a new map (after the first they don't cause the small freeze)
It's a precache error. Spawning dummy airdrop after map start should solve this
__________________
cry

Last edited by BHaType; 02-15-2022 at 00:37.
BHaType is offline
Send a message via AIM to BHaType
sonic155
Senior Member
Join Date: Mar 2019
Old 02-26-2022 , 13:42   Re: [L4D2 & L4D] Airdrop
Reply With Quote #158

] sm_airdrop
Failed to call airdrop
] sm_airdrop_info_dump
************************
Airdrops Infos
0. Name: MBC Health: 120, Alive Time, 30.00 Weapons Count: 15, model: models/props_junk/wood_crate002a.mdl
1. Name: MPC Health: 0, Alive Time, 30.00 Weapons Count: 1, model: models/props_crates/supply_crate02.mdl
2. Name: MBC Health: 120, Alive Time, 30.00 Weapons Count: 15, model: models/props_junk/wood_crate002a.mdl
3. Name: MPC Health: 0, Alive Time, 30.00 Weapons Count: 1, model: models/props_crates/supply_crate02.mdl
************************
Airplanes Infos
0. Name: F4 Airdrops Count: 4, Drop Time: 5.50, Drop Delay: 0.40
1. Name: A12 Airdrops Count: 8, Drop Time: 5.50, Drop Delay: 0.20
2. Name: F4 Airdrops Count: 4, Drop Time: 5.50, Drop Delay: 0.40
3. Name: A12 Airdrops Count: 8, Drop Time: 5.50, Drop Delay: 0.20
************************
sonic155 is offline
Thefollors
Member
Join Date: Nov 2021
Old 03-01-2022 , 17:04   Re: [L4D2 & L4D] Airdrop
Reply With Quote #159

bots don't shoot infected when airdrop is activated, please fix it

Last edited by Thefollors; 03-11-2022 at 18:29.
Thefollors is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 03-02-2022 , 04:30   Re: [L4D2 & L4D] Airdrop
Reply With Quote #160

Quote:
Originally Posted by sonic155 View Post
Failed to call airdrop
By default you can't call airdrop if there is no sky above you. Change "skyboxonly" to disable it

Updated
PHP Code:
Removed old version
Fixed config parse duplication 
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
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 03:48.


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