AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Prototype Grenades (1.46) [22-Nov-2023] (https://forums.alliedmods.net/showthread.php?t=318965)

Silvers 10-10-2019 04:04

Re: [L4D & L4D2] Prototype Grenades (1.3) [10-Oct-2019]
 
Quote:

1.3 (10-Oct-2019)
- Added support for "Gear Transfer" plugin. For persistent grenade types when "preferences" is set to random grenade mode.
- Changed Vaporizer to inflict full damage on Common instead of range scaled. Original functionality before 1.1.
If you use Gear Transfer plugin and want random grenade types, you'll need to update Gear Transfer also.

KRUTIK 10-10-2019 05:32

Re: [L4D & L4D2] Prototype Grenades (1.3) [10-Oct-2019]
 
1 Attachment(s)
Added Russian language.

KRUTIK 10-10-2019 07:00

Re: [L4D & L4D2] Prototype Grenades (1.3) [10-Oct-2019]
 
[SM] Exception reported: Invalid edict (118 - 118)
L 10/10/2019 - 13:41:34: [SM] Blaming: l4d_grenades.smx
L 10/10/2019 - 13:41:34: [SM] Call stack trace:
L 10/10/2019 - 13:41:34: [SM] [0] GetEdictClassname
L 10/10/2019 - 13:41:34: [SM] [1] Line 900, C:\Servers\L4D2\left4dead2\addons\sourcemod\s cripting\l4d_grenades.sp::OnNextEquip
L 10/10/2019 - 13:42:25: Error log file session closed.

Silvers 10-10-2019 07:24

Re: [L4D & L4D2] Prototype Grenades (1.4) [10-Oct-2019]
 
Thank you! Updated and added translation.

3aljiyavslgazana 10-10-2019 07:49

Re: [L4D & L4D2] Prototype Grenades (1.4) [10-Oct-2019]
 
forget what i said Awesome plugin !!!!! :twisted::twisted::twisted:

Dragokas 10-13-2019 15:27

Re: [L4D & L4D2] Prototype Grenades (1.4) [10-Oct-2019]
 
Thanks for the very beautiful plugin.

Looks like crash in L4D1 caused by the same issue, wrong sig for OnStaggered.

Bugs:
"Flash" grenade causes "Screen of death" appear, however player is not dead and continue to play.

"Freezer" doesn't target commons.

Also, plugin conflicts with gear_transfer. When you press LMB + RMB and somebody accidentally runs past you, you give him a grenade instead of switching the mode.

Can you add optional ConVar to change the method of switching grenade mode,
e.g.
PHP Code:

// Grenade switch mode: 0 - switch by circle, 1 - switch by menu (list of modes will appear)
l4d_grenades_switchmode "0" 

New grenade type request:
"Tank" - force all tanks on the map to follow the grenade (e.g. use evil witch method - change angle OnThink).

"Antigravity" - force all players in the area to be pushed off the ground for some time (possibly, also not easy one, maybe force "+jump" hijack in OnPlayerRunCmd + changing velocity / gravity prop, and maybe check some abilities from VPhysics).

--
Also, it's very nice to see configs for default "stock" grenade mode, to be able to override them, e.g. ignite time (like,
Spoiler

), radius...

+ Like :)

Dragokas 10-13-2019 16:08

Re: [L4D & L4D2] Prototype Grenades (1.4) [10-Oct-2019]
 
Code:

                "damage_physics"                "2.0"                // Damage multiplier against Physics objects.
                "damage_special"                "2.0"                // Damage multiplier against Special Infected.
                "damage_survivors"                "0.05"                // Damage multiplier against Survivors.
                "damage_tank"                        "1.0"                // Damage multiplier against the Tank.
                "damage_witch"                        "1.0"                // Damage multiplier against the Witch.
                "damage"                                "75.0"                // Amount of damage to deal each hit. Damage falls off over range.

How to differentiate damage done to common zombies (not specials) ?
I'm trying to hit zombie horde when horde runs next to a chemical grenade, but I can't even with extra high damage values.

Also, "Mod_Freezer" with "targets" "29" freeze survivors.

Silvers 10-14-2019 01:29

Re: [L4D & L4D2] Prototype Grenades (1.4) [10-Oct-2019]
 
Update coming soon with fixes for the above mentioned issues. Menu to select mode and some new grenade modes.


Quote:

Originally Posted by Dragokas (Post 2669690)
How to differentiate damage done to common zombies (not specials) ?
I'm trying to hit zombie horde when horde runs next to a chemical grenade, but I can't even with extra high damage values.

Code:

                "damage_physics"                "0.2"                // Damage multiplier against Physics objects.
                "damage_special"                "0.2"                // Damage multiplier against Special Infected.
                "damage_survivors"                "0.1"                // Damage multiplier against Survivors.
                "damage_tank"                        "0.1"                // Damage multiplier against the Tank.
                "damage_witch"                        "0.1"                // Damage multiplier against the Witch.
                "damage"                        "150.0"                // Amount of damage to deal each hit. Damage falls off over range.
                "damage_tick"                        "0.5"                // How often to deal damage during the "effect_time".
                "effect_range"                        "300.0"                // Distance the effect can influence.

Remember "Damage falls off over range". At 300 units away it will be 1 HP. The closer to the center the more damage. This would do 150.0 damage to common and 15.0 to survivors. This works nicely to kill the common instantly near center. I might use this for the default values.



Quote:

Originally Posted by Dragokas (Post 2669688)
Also, plugin conflicts with gear_transfer. When you press LMB + RMB and somebody accidentally runs past you, you give him a grenade instead of switching the mode.

Menu will be added. Unless someone can recommend a good alternative key combination. Holding shoot + Use is bad because of interacting with objects. Reload key is also used by Gear Transfer.


Quote:

Originally Posted by Dragokas (Post 2669688)
Also, it's very nice to see configs for default "stock" grenade mode, to be able to override them

This is something I'll write as an external plugin.

Silvers 10-16-2019 20:00

Re: [L4D & L4D2] Prototype Grenades (1.5) [17-Oct-2019]
 
Large update:

Code:

1.5 (17-Oct-2019)
    - Added 6 new types: Extinguisher, Glow, Anti-Gravity, Fire Cluster, Bullets and Flak.
    - Added command "sm_grenade" to open a menu for choosing the grenade type. Optional args to specify a type.
    - Added "mode_switch" in the config to control how to change grenade type. Menu and/or key combination.
    - Auto display and close menu with "mode_switch" when selecting a different type via key combination.
    - Changed L4D2 vocalizations from "throwing pipebomb" or "throwing molotov" etc to "throwing grenade" when not stock.
    - Changed grenade bounce impact sound.
    - Cleaned up the sounds by changing some and adding a few missing ones.
    - Feature to push and stumble Common Infected now works in L4D1.
    - Fixed wrong Deafen offset for L4D1 Linux. Fixes Flashbang.
    - Fixed wrong OnStaggered signature for Linux L4D1. Fixes staggering clients.
    - Fixed Freezer type not following the "targets" setting.
    - Fixed "damage_tick" to function for most types. Values smaller than "effect_tick" will use the effect tick time.
    - Thanks to "Dragokas" for the menu ideas and reporting problems in L4D1.

    - Required updated files:
    - Config: l4d_grenades.cfg
    - Gamedata: l4d_grenades.txt
    - Translations: grenades.phrases.txt.


KRUTIK 10-18-2019 01:54

Re: [L4D & L4D2] Prototype Grenades (1.5) [17-Oct-2019]
 
: [SM] Exception reported: Entity -1 (-2137104103) is invalid
L 10/17/2019 - 20:52:45: [SM] Blaming: l4d_grenades.smx
L 10/17/2019 - 20:52:45: [SM] Call stack trace:
L 10/17/2019 - 20:52:45: [SM] [0] DispatchKeyValue
L 10/17/2019 - 20:52:45: [SM] [1] Line 3234, C:\Servers\L4D2\left4dead2\addons\sourcemod\s cripting\l4d_grenades.sp::Explode_Bullets
L 10/17/2019 - 20:52:45: [SM] [2] Line 2188, C:\Servers\L4D2\left4dead2\addons\sourcemod\s cripting\l4d_grenades.sp::Explode_Effects
L 10/17/2019 - 20:52:45: [SM] [3] Line 2144, C:\Servers\L4D2\left4dead2\addons\sourcemod\s cripting\l4d_grenades.sp::Timer_Repeat_Explod e
L 10/17/2019 - 20:52:45: [SM] Exception reported: Entity -1 (-2137104103) is invalid


All times are GMT -4. The time now is 18:13.

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