Raised This Month: $62 Target: $400
 15% 

[L4D2] Spitter Projectile Creator (1.0) [09-Jun-2019]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6597
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Provides two commands to creates the Spitter projectile and drop the Spitter goo.
    Old 06-08-2019 , 21:34   [L4D2] Spitter Projectile Creator (1.0) [09-Jun-2019]
    Reply With Quote #1

    About
    • Two commands to create Spitter projectiles and drop Spitter goo.
    • Had this code laying around with no use.
    • Don't look at the signature, it's identical to several functions so must be long, the differences are offsets that change each update.


    Thanks - For Request
    • bliblablub.
    • Marttt.

    ConVars
    PHP Code:
    l4d2_spitter_projectile_version // Spitter Projectile plugin version. 

    Admin Commands
    PHP Code:
    sm_spitter_prj    // Shoots the Spitter projectile from yourself to where you're aiming.
    sm_spitter_goo    // Drops the Spitter goo to where you're aiming the crosshair. 

    Changes
    Code:
    1.0 (09-June-2019)
        - Initial release.

    Installation
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    2. Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.
    Attached Files
    File Type: txt l4d2_spitter_projectile.txt (1.2 KB, 42 views)
    File Type: sp Get Plugin or Get Source (l4d2_spitter_projectile.sp - 64 views - 6.3 KB)
    __________________
    Silvers is offline
    bliblablub
    Junior Member
    Join Date: Jun 2019
    Old 06-09-2019 , 04:53   Re: [L4D2] Spitter Projectile Creator (1.0) [09-Jun-2019]
    Reply With Quote #2

    WOW, looks verry cool. Thank yuu!

    But how do i use this with the admin-menu?
    bliblablub is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-09-2019 , 07:43   Re: [L4D2] Spitter Projectile Creator (1.0) [09-Jun-2019]
    Reply With Quote #3

    Quote:
    Originally Posted by bliblablub View Post
    WOW, looks verry cool. Thank yuu!

    But how do i use this with the admin-menu?
    https://wiki.alliedmods.net/Custom_A...nu_(SourceMod)
    __________________
    Silvers is offline
    bliblablub
    Junior Member
    Join Date: Jun 2019
    Old 06-09-2019 , 08:48   Re: [L4D2] Spitter Projectile Creator (1.0) [09-Jun-2019]
    Reply With Quote #4

    Sry, can not work with this.
    bliblablub is offline
    bliblablub
    Junior Member
    Join Date: Jun 2019
    Old 06-09-2019 , 09:35   Re: [L4D2] Spitter Projectile Creator (1.0) [09-Jun-2019]
    Reply With Quote #5

    Ok, I'll try to explain what my problem is.

    As mentioned earlier, a few months ago, if not a few years ago, I had an admin menu that offered everything you could possibly imagine. Unfortunately, I can not remember where I came from.

    This admin menu is not bad, but many things are missing. There was no way to spawn Vomit-Jar. Defibrillators and adrenaline were also missing. In the mini-gun menu you can spawn only the heavy machine gun, no mini-gun. The deagle is missing too. The special infected lacked Jockey, Spitter and Charger.

    I have added all this myself by reworking the file "l4d_weaponspawner.sp" and converting it with the compiler of SourceMod.

    Now I just lack features like the Spitter-Spit, laser sights and the explosive barrels.

    Is there no way to incorporate these into the file "l4d_weaponspawner.sp" so that you do not need a new plugin?

    For the adrenaline and the defibrillator, for example, I simply added the following in the file:

    Code:
    BuildHealthMenu(client)
    {
    	decl String:first_aid_kit[40], String:defibrillator[40], String:adrenaline[40], String:pain_pills[40], String:title[40]; 
    
    	new Handle:menu = CreateMenu(MenuHandler_SpawnWeapon);
    	
    	Format(first_aid_kit, sizeof(first_aid_kit),"%T", "FirstAidKit", LANG_SERVER)
    	AddMenuItem(menu, "weapon_first_aid_kit", first_aid_kit)
    	Format(defibrillator, sizeof(defibrillator),"%T", "Defibrillator", LANG_SERVER)
    	AddMenuItem(menu, "weapon_defibrillator", defibrillator)
    	Format(adrenaline, sizeof(adrenaline),"%T", "Adrenaline", LANG_SERVER)
    	AddMenuItem(menu, "weapon_adrenaline", adrenaline)
    	Format(pain_pills, sizeof(pain_pills),"%T", "PainPills", LANG_SERVER)
    	AddMenuItem(menu, "weapon_pain_pills", "Pain Pills")
    	Format(title, sizeof(title),"%T", "HealthMenuTitle", LANG_SERVER)
    	SetMenuTitle(menu, title)
    	SetMenuExitBackButton(menu, true)
    
    	ChoosedMenuSpawn[client] = "HealthSpawnMenu";
    	DisplayMenu(menu, client, MENU_TIME_FOREVER)
    }

    Is it not possible, if I know what the exact name, for example of the barrels, is, and then add it as well?

    Last edited by bliblablub; 06-09-2019 at 09:37.
    bliblablub is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-09-2019 , 09:46   Re: [L4D2] Spitter Projectile Creator (1.0) [09-Jun-2019]
    Reply With Quote #6

    Quote:
    Originally Posted by bliblablub View Post
    This admin menu is not bad, but many things are missing. There was no way to spawn Vomit-Jar. Defibrillators and adrenaline were also missing. In the mini-gun menu you can spawn only the heavy machine gun, no mini-gun. The deagle is missing too. The special infected lacked Jockey, Spitter and Charger.

    I have added all this myself by reworking the file "l4d_weaponspawner.sp" and converting it with the compiler of SourceMod.

    Now I just lack features like the Spitter-Spit, laser sights and the explosive barrels.
    You're using the wrong version, l4d2_weaponspawner_v10a.sp includes these, Lasers, Explosive Barrels, both Mini Guns.

    You could modify the plugin to add another menu entry to execute the command sm_spit, or combine the plugin yourself if you really want. It's not something I will provide support for, you'll have to learn and figure out yourself.
    __________________

    Last edited by Silvers; 06-09-2019 at 09:46.
    Silvers is offline
    bliblablub
    Junior Member
    Join Date: Jun 2019
    Old 06-09-2019 , 09:58   Re: [L4D2] Spitter Projectile Creator (1.0) [09-Jun-2019]
    Reply With Quote #7

    "l4d2_weaponspawner_v10a.sp"? ... Google only found "l4d2_weaponspawner_v1.0a.sp"

    //edit: Ok, i found "l4d2_weaponspawner_v10b.sp" ^^

    Last edited by bliblablub; 06-09-2019 at 10:09.
    bliblablub 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 08:05.


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