Raised This Month: $51 Target: $400
 12% 

[L4D & L4D2] Limb-Based Damage Modifier / Headshot Tank v1.1 [5-May-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 05-22-2022 , 04:49   Re: [L4D & L4D2] Limb-Based Damage Modifier / Headshot Tank v1.1 [5-May-2022]
Reply With Quote #11

Quote:
Originally Posted by xZk View Post
nice job, where can i get the values for this limb_modifier_allow_ammo?
pd:
Code:
// apply the modifier for which targets
// 32=Jockey 32=Charger
thanks report, code no problem, and proper description is ... 32=Jockey 64=Charger 128=Witch 256=Tank 512=Survivor 1023=All
for the ammo_type, unfortunately i cant found any article to explain this, that mean need manually get values
try edit line 160 like this
PHP Code:
if (modifier_allow_ammo) {
        
PrintToChat(attacker"ammotype %b(%d)"ammotypeammotype);
        if (
ammotype == -|| !(modifier_allow_ammo ammotype))
            return 
Plugin_Continue;
    } 
when you set cvar allow_ammo to any value then shoot the zombie, plugin will report value on chat box
__________________

Last edited by NoroHime; 05-22-2022 at 04:53.
NoroHime is offline
xZk
Senior Member
Join Date: Nov 2017
Location: cl
Old 05-22-2022 , 12:48   Re: [L4D & L4D2] Limb-Based Damage Modifier / Headshot Tank v1.1 [5-May-2022]
Reply With Quote #12

i verified the values and I can confirm that this works(except L4D2_AMMOTYPE_GRENADE_LAUNCHER its value is -1 it's the same as melee weapons..:c):
PHP Code:
#define L4D1_AMMOTYPE_PISTOL 1 // pistol
#define L4D1_AMMOTYPE_HUNTING_RIFLE 2 // hunting_rifle
#define L4D1_AMMOTYPE_RIFLE 3 // rifle
#define L4D1_AMMOTYPE_SMG 5 // smg
#define L4D1_AMMOTYPE_SHOTGUN 6 // pumpshotgun/autoshotgun

#define L4D2_AMMOTYPE_PISTOL 1 // pistol
#define L4D2_AMMOTYPE_PISTOL_MAGNUM 2 // pistol_magnum
#define L4D2_AMMOTYPE_RIFLE 3 // rifle/rifle_ak47/rifle_desert/rifle_sg552
#define L4D2_AMMOTYPE_SMG 5 // smg/smg_silenced/smg_mp5
#define L4D2_AMMOTYPE_RIFLE_M60 6 // rifle_m60
#define L4D2_AMMOTYPE_SHOTGUN_TIER1 7 // pumpshotgun/shotgun_chrome
#define L4D2_AMMOTYPE_SHOTGUN_TIER2 8 // autoshotgun/shotgun_spas
#define L4D2_AMMOTYPE_HUNTING_RIFLE 9 // hunting_rifle
#define L4D2_AMMOTYPE_SNIPER_RIFLE 10 // sniper_military/sniper_awp/sniper_scout
#define L4D2_AMMOTYPE_GRENADE_LAUNCHER 17 // grenade_launcher 
thanks to Psy for you info
xZk is offline
z282846139
Member
Join Date: Aug 2018
Old 06-29-2023 , 05:51   Re: [L4D & L4D2] Limb-Based Damage Modifier / Headshot Tank v1.1 [5-May-2022]
Reply With Quote #13

Why both the Jokcey and the Charger are target with 32 in my compiled version?
z282846139 is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 06-29-2023 , 07:24   Re: [L4D & L4D2] Limb-Based Damage Modifier / Headshot Tank v1.1 [5-May-2022]
Reply With Quote #14

Quote:
Originally Posted by z282846139 View Post
Why both the Jokcey and the Charger are target with 32 in my compiled version?
sorry there just description edit wrong, see main thread, 32=jockey 64=charger.
code no problem
__________________

Last edited by NoroHime; 06-29-2023 at 07:24.
NoroHime is offline
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 21:55.


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