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

[L4D] DragoWitches: Bomber Witch


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Plugin ID:
8203
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Fast and furious
    Old 09-29-2022 , 05:26   [L4D] DragoWitches: Bomber Witch
    Reply With Quote #1

    Description:
    Beautiful and lethal dangerous. You'll surely don't want to meet this witch!
    • She equipped both with molotov and pipe bomb.
    • If it's happened you couldn't kill her in one-shot (or you offended her), she run to you with bomb turned on.
    • You have a chance to steal her pipe bomp or molotov, however, she will be very angry with you.
    • If she put you on the ground, you are completely in her power, you cannot kill her.
    • When pipe-bomb detonated, a lot of fire is appearing.
    • However, the witch still hungry, fried meat is no longer interesting to her, so, she leaves you and goes for a second target until the fire finally burn her.
    Meet Bomber Witch from the series of DragoWitches!


    Settings (ConVars):
    Can be found in: cfg/sourcemod/l4d_witch_bomber.cfg
    PHP Code:
    // Enable plugin (1 - On / 0 - Off)
    l4d_witch_bomber_enable "1"

    // % chance the witch to become a bomber
    l4d_witch_bomber_chance "20" 
    Supported games:
    - L4D1
    - L4D2 (unknown)
    Impl. details (for devs):
    - Uses invisible overlay to provide more attachment points for witch entity.
    ChangeLog


    Credits:
    - @Silvers - for for pipebomp create & attach code.
    Donate
    Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
    - Patreon
    - BitCoin
    - Ю.Money
    P.S.:
    - It's my private plugin written for myself and my Bloody Witch team.
    - Project and updates discontinued. Don't ask.
    Attached Files
    File Type: zip WitchBomber.zip (20.0 KB, 235 views)
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 11-30-2022 at 15:21.
    Dragokas is offline
    sonic155
    Senior Member
    Join Date: Mar 2019
    Old 11-30-2022 , 01:29   Re: [L4D] DragoWitches: Bomber Witch
    Reply With Quote #2

    how do you remove the shield?
    sonic155 is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 11-30-2022 , 15:25   Re: [L4D] DragoWitches: Bomber Witch
    Reply With Quote #3

    Option is not provided.
    You can replace code:
    Code:
    int iShield = vShield(witch);
    SDKHook(witch, SDKHook_OnTakeDamage, OnTakeDamage);
    g_iShield[witch] = EntIndexToEntRef(iShield);
    with
    Code:
    SDKHook(witch, SDKHook_OnTakeDamage, OnTakeDamage);
    g_iShield[witch] = -1;
    to remove visual effect.
    And remove:
    Code:
    SDKHook(witch, SDKHook_OnTakeDamage, OnTakeDamage);
    ...
    SDKUnhook(witch, SDKHook_OnTakeDamage, OnTakeDamage);
    to remove physical effect.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 11-30-2022 at 15:27.
    Dragokas is offline
    sonic155
    Senior Member
    Join Date: Mar 2019
    Old 12-01-2022 , 00:09   Re: [L4D] DragoWitches: Bomber Witch
    Reply With Quote #4

    Quote:
    public Action Timer_Pipe(Handle timer, DataPack dp)
    {
    dp.Reset();
    int witch = EntRefToEntIndex(dp.ReadCell());
    if( witch && witch != INVALID_ENT_REFERENCE && IsValidEntity(witch) )
    {
    if( g_bAlive[witch] )
    {
    int attacker = GetClientOfUserId(dp.ReadCell());
    if( attacker && IsClientInGame(attacker) )
    {
    SDKUnhook(witch, SDKHook_OnTakeDamage, OnTakeDamage);
    g_iShield[witch] = -1;

    InsertPipe(witch, attacker, -1, g_hCvarPipeTime.IntValue);

    DataPack dp2 = new DataPack();
    dp2.WriteCell(EntIndexToEntRef(witch));
    dp2.WriteCell(0);
    dp2.WriteCell(1); // assign victim

    CreateTimer(g_hCvarPipeTime.FloatValue, Timer_Fire, dp2, TIMER_FLAG_NO_MAPCHANGE | TIMER_HNDL_CLOSE);
    }
    }
    }
    return Plugin_Continue;
    }


    like so?

    ~~~~~

    got this when compiled

    ~~~~
    //SourceMod Batch Compiler
    // by the SourceMod Dev Team


    //// l4d_witch_bomber.sp
    //
    // l4d_witch_bomber.sp(341) : warning 203: symbol is never used: "vShield"
    // Code size: 20088 bytes
    // Data size: 70552 bytes
    // Stack/heap size: 16724 bytes
    // Total requirements: 107364 bytes
    //
    // 1 Warning.
    //
    // Compilation Time: 1.3 sec
    // ----------------------------------------

    Press enter to exit ...

    Last edited by sonic155; 12-01-2022 at 00:11.
    sonic155 is offline
    Reply


    Thread Tools
    Display Modes

    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 15:33.


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