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

[L4D2] Damage Mod (SDKHooks Ed.)


Post New Thread Reply   
 
Thread Tools Display Modes
Jоnny
Senior Member
Join Date: Jun 2007
Old 05-20-2010 , 04:23   Re: [L4D2] Damage Mod (SDKHooks Ed.)
Reply With Quote #11

as i know OnTakeDamage hook doesn't support L4D2
Jоnny is offline
Jоnny
Senior Member
Join Date: Jun 2007
Old 05-20-2010 , 04:24   Re: [L4D2] Damage Mod (SDKHooks Ed.)
Reply With Quote #12

btw
Code:
    damage = damage * damagemod;
    DebugPrintToAll("Damage modded by [%f] to [%f]", damagemod, damage);
    
    return Plugin_Continue;
return Plugin_Continue? not Plugin_Changed?
Jоnny is offline
ellis
Senior Member
Join Date: Apr 2010
Old 05-20-2010 , 06:32   Re: [L4D2] Damage Mod (SDKHooks Ed.)
Reply With Quote #13

hey atomic,

ok i have installed the actually sdk hooks.
i became this sourcemod error always.

Code:
L 05/20/2010 - 11:45:21: SourceMod error session started
L 05/20/2010 - 11:45:21: Info (map "c1m1_hotel") (file "errors_20100520.log")
L 05/20/2010 - 11:45:21: [SM] Native "GetClientTeam" reported: Client index 30 is invalid
L 05/20/2010 - 11:45:21: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 11:45:21: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 11:45:22: [SM] Native "GetClientTeam" reported: Client index 30 is invalid
L 05/20/2010 - 11:45:22: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 11:45:22: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 11:45:23: [SM] Native "GetClientTeam" reported: Client index 30 is invalid
L 05/20/2010 - 11:45:23: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 11:45:23: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 11:48:33: Error log file session closed.
ellis is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 05-20-2010 , 06:49   Re: [L4D2] Damage Mod (SDKHooks Ed.)
Reply With Quote #14

What the ... ive never seen Common Infected have such a low entid .. was that a witch, perhaps?

Updated the plugin with a breaker for this case.
AtomicStryker is offline
psychonic

BAFFLED
Join Date: May 2008
Old 05-20-2010 , 07:45   Re: [L4D2] Damage Mod (SDKHooks Ed.)
Reply With Quote #15

Quote:
Originally Posted by Jоnny View Post
as i know OnTakeDamage hook doesn't support L4D2
Incorrect. Thanks to HLSDK, the newest SDKHooks download for L4D2 does support it.
psychonic is offline
ellis
Senior Member
Join Date: Apr 2010
Old 05-20-2010 , 10:59   Re: [L4D2] Damage Mod (SDKHooks Ed.)
Reply With Quote #16

i downloaded the new version 1.0.1 from first post and deleted my old logs.
but i became the same error. with version 1.0.1
i dont understant it.

Code:
L 05/20/2010 - 13:58:21: Info (map "c3m2_swamp") (file "errors_20100520.log")
L 05/20/2010 - 13:58:21: [SM] Native "GetClientTeam" reported: Client index 31 is invalid
L 05/20/2010 - 13:58:21: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 13:58:21: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:07:08: [SM] Native "GetClientTeam" reported: Client index 29 is invalid
L 05/20/2010 - 14:07:08: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:07:08: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:07:13: [SM] Native "GetClientTeam" reported: Client index 29 is invalid
L 05/20/2010 - 14:07:13: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:07:13: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:12:59: [SM] Native "GetClientTeam" reported: Client index 31 is invalid
L 05/20/2010 - 14:12:59: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:12:59: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:12:59: [SM] Native "GetClientTeam" reported: Client index 30 is invalid
L 05/20/2010 - 14:12:59: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:12:59: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:12:59: [SM] Native "GetClientTeam" reported: Client index 31 is invalid
L 05/20/2010 - 14:12:59: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:12:59: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:13:00: [SM] Native "GetClientTeam" reported: Client index 30 is invalid
L 05/20/2010 - 14:13:00: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:13:00: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:13:00: [SM] Native "GetClientTeam" reported: Client index 31 is invalid
L 05/20/2010 - 14:13:00: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:13:00: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:13:01: [SM] Native "GetClientTeam" reported: Client index 30 is invalid
L 05/20/2010 - 14:13:01: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:13:01: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:13:02: [SM] Native "GetClientTeam" reported: Client index 30 is invalid
L 05/20/2010 - 14:13:02: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:13:02: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:13:35: [SM] Native "GetClientTeam" reported: Client index 31 is invalid
L 05/20/2010 - 14:13:35: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:13:35: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:13:35: [SM] Native "GetClientTeam" reported: Client index 31 is invalid
L 05/20/2010 - 14:13:35: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:13:35: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:13:36: [SM] Native "GetClientTeam" reported: Client index 31 is invalid
L 05/20/2010 - 14:13:36: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:13:36: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:13:37: [SM] Native "GetClientTeam" reported: Client index 31 is invalid
L 05/20/2010 - 14:13:37: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:13:37: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:13:38: [SM] Native "GetClientTeam" reported: Client index 31 is invalid
L 05/20/2010 - 14:13:38: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:13:38: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:14:51: Error log file session closed.
L 05/20/2010 - 14:16:53: SourceMod error session started
L 05/20/2010 - 14:16:53: Info (map "c3m3_shantytown") (file "errors_20100520.log")
L 05/20/2010 - 14:16:53: [SM] Native "GetClientTeam" reported: Client index 30 is invalid
L 05/20/2010 - 14:16:53: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:16:53: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:16:55: [SM] Native "GetClientTeam" reported: Client index 30 is invalid
L 05/20/2010 - 14:16:55: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:16:55: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:16:57: [SM] Native "GetClientTeam" reported: Client index 30 is invalid
L 05/20/2010 - 14:16:57: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:16:57: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:17:04: [SM] Native "GetClientTeam" reported: Client index 30 is invalid
L 05/20/2010 - 14:17:04: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:17:04: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:18:19: [SM] Native "GetClientTeam" reported: Client index 30 is invalid
L 05/20/2010 - 14:18:19: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:18:19: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:19:25: [SM] Native "GetClientTeam" reported: Client index 30 is invalid
L 05/20/2010 - 14:19:25: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:19:25: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:20:19: [SM] Native "GetClientTeam" reported: Client index 30 is invalid
L 05/20/2010 - 14:20:19: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:20:19: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:32:04: [SM] Native "GetClientTeam" reported: Client index 30 is invalid
L 05/20/2010 - 14:32:04: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:32:04: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:32:51: Error log file session closed.
L 05/20/2010 - 14:41:17: SourceMod error session started
L 05/20/2010 - 14:41:17: Info (map "c3m4_plantation") (file "errors_20100520.log")
L 05/20/2010 - 14:41:17: [SM] Native "GetClientTeam" reported: Client index 29 is invalid
L 05/20/2010 - 14:41:17: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:41:17: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:41:18: [SM] Native "GetClientTeam" reported: Client index 29 is invalid
L 05/20/2010 - 14:41:18: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:41:18: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:47:44: [SM] Native "GetClientTeam" reported: Client index 28 is invalid
L 05/20/2010 - 14:47:44: [SM] Displaying call stack trace for plugin "l4d2_damage_sdkhooks.smx":
L 05/20/2010 - 14:47:44: [SM]   [0]  Line 224, l4d2_damage_sdkhooks.sp::OnTakeDamage()
L 05/20/2010 - 14:52:29: Error log file session closed.
ellis is offline
Eraa
Senior Member
Join Date: Mar 2010
Old 05-20-2010 , 11:56   Re: [L4D2] Damage Mod (SDKHooks Ed.)
Reply With Quote #17

I try to boost the sniper APW, but it not seem to work properly
Code:
    "AWP Sniper"
    //-- Base Damage: 115
    {
        "weapon_class"            "weapon_sniper_awp"
        "modifier_friendly"        "5.0"
        "modifier_enemy"        "5.0"
    }
Smoker with 550 HP :
Quote:
First Test :
[DAMAGE] attacker 1, inflictor 369 dealt [115.000000] damage to victim 5, class weapon_sniper_awp
[DAMAGE] Damage modded by [5.000000] to [575.000000]
[DAMAGE] attacker 1, inflictor 369 dealt [115.000000] damage to victim 5, class weapon_sniper_awp
[DAMAGE] Damage modded by [5.000000] to [575.000000]
Smoker Dead
------
Second Test :
[DAMAGE] attacker 1, inflictor 369 dealt [115.000000] damage to victim 5, class weapon_sniper_awp
[DAMAGE] Damage modded by [5.000000] to [575.000000]
[DAMAGE] attacker 1, inflictor 369 dealt [115.000000] damage to victim 5, class weapon_sniper_awp
[DAMAGE] Damage modded by [5.000000] to [575.000000]
[DAMAGE] attacker 1, inflictor 369 dealt [115.000000] damage to victim 5, class weapon_sniper_awp
[DAMAGE] Damage modded by [5.000000] to [575.000000]
Smoker Dead
Normally he should die in one shot, with a damage of 575 ...

I tried solo in versus, on a bot, no error in log here

SDK Hooks 1.3.0 - SM 1.3.2 -MM 1.8.1
__________________
Eraa is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 05-20-2010 , 17:03   Re: [L4D2] Damage Mod (SDKHooks Ed.)
Reply With Quote #18

@ellis
Boy, you are WEARING me out.

@jonny
You may have a point

@Eraa
Strange

But props for knowing what a debug setting is and how to use it ... that elevates you above 90% of my customers


@all
Try 1.0.2

Last edited by AtomicStryker; 05-20-2010 at 17:06.
AtomicStryker is offline
KnowledgeJunkie
Junior Member
Join Date: Nov 2009
Old 05-20-2010 , 23:01   Re: [L4D2] Damage Mod (SDKHooks Ed.)
Reply With Quote #19

Atomic coming through with another CLUTCH L4D2 plugin to streamline crazy new gamemode ideas... like human infected vs survivor bots. Not to be too crazy... but do you think you could incorporate a chance value? Meaning a percentage that the damage will be applied? Maybe even a chance among these three options: Damage applied normally | Damage with Multiplier | No Damage
KnowledgeJunkie is offline
MarshalZCC
Senior Member
Join Date: Feb 2010
Location: Alberta, Canada
Old 05-21-2010 , 01:22   Re: [L4D2] Damage Mod (SDKHooks Ed.)
Reply With Quote #20

This plugin inspired me to write my own - I can confirm what others are seeing: changing the damage parameter and returning Plugin_Changed doesn't actually change the damage. However, I'm using SM 1.3.2 and I noticed you testing on 1.4.0... could be the difference.
MarshalZCC 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 17:47.


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