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

missile_l4d.sp Missle Damage Help


Post New Thread Reply   
 
Thread Tools Display Modes
ricksfishin
Senior Member
Join Date: Oct 2017
Old 11-14-2018 , 07:53   Re: missile_l4d.sp Missle Damage Help
Reply With Quote #11

L4d2 , linux server if that helps, When a player hits another player with a missile, still does Sufficient damage. Thanks
ricksfishin is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-14-2018 , 08:00   Re: missile_l4d.sp Missle Damage Help
Reply With Quote #12

Could you please repeat the log using this new version of damageinfo?
Attached Files
File Type: sp Get Plugin or Get Source (damageinfo.sp - 131 views - 5.8 KB)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
ricksfishin
Senior Member
Join Date: Oct 2017
Old 11-14-2018 , 08:43   Re: missile_l4d.sp Missle Damage Help
Reply With Quote #13

Attacking -- victim:5 | attacker:1 | inflictor:1 | dmg:54.37 | dmg type:-2147483646 | ammo type | hitbox:29 | hitgroup: 0
Attacking -- victim:5 | attacker:1 | inflictor:1 | dmg:54.37 | dmg type:-2147483646 | ammo type | hitbox:29 | hitgroup: 0
Receive attack -- victim:1 | attacker:2 | inflictor:2 | dmg:57.25 | dmg type:-2147483646 | ammo type | hitbox:5 | hitgroup: 7
Damage taken -- victim:1 | attacker:2 (player) | inflictor:2 (player) | dmg:0.00 | dmg type:-2147483646 | weapon ent:217 | force:265.71 | dmg p
Receive attack -- victim:1 | attacker:2 | inflictor:2 | dmg:57.25 | dmg type:-2147483646 | ammo type | hitbox:5 | hitgroup: 7
Damage taken -- victim:1 | attacker:2 (player) | inflictor:2 (player) | dmg:0.00 | dmg type:-2147483646 | weapon ent:217 | force:265.71 | dmg p
Damage taken -- victim:1 | attacker:0 (worldspawn) | inflictor:0 (worldspawn) | dmg:6.25 | dmg type2 | weapon ent:-1 | force:0.00 | dmg pos:0
Damage taken -- victim:1 | attacker:0 (worldspawn) | inflictor:0 (worldspawn) | dmg:6.25 | dmg type2 | weapon ent:-1 | force:0.00 | dmg pos:0
Receive attack -- victim:1 | attacker:5 | inflictor:179 | dmg:24.00 | dmg type:128 | ammo type:-1 | hitbox:0 | hitgroup: 0
Damage taken -- victim:1 | attacker:5 (player) | inflictor:179 (weapon_tank_claw) | dmg:24.00 | dmg type:128 | weapon ent:-1 | force:5068.31 |
Receive attack -- victim:1 | attacker:5 | inflictor:179 | dmg:24.00 | dmg type:128 | ammo type:-1 | hitbox:0 | hitgroup: 0
Damage taken -- victim:1 | attacker:5 (player) | inflictor:179 (weapon_tank_claw) | dmg:24.00 | dmg type:128 | weapon ent:-1 | force:5068.31

Think i am victim 1 attacker 1
Also new damageinfo.smx not printing damage on every attack, 3 missiles to tank no damage printed

Last edited by ricksfishin; 11-14-2018 at 09:04.
ricksfishin is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-14-2018 , 11:28   Re: missile_l4d.sp Missle Damage Help
Reply With Quote #14

Quote:
Also new damageinfo.smx not printing damage on every attack, 3 missiles to tank no damage printed
I removed that print.
Quote:
Attacking -- victim:5 | attacker:1 | inflictor:1 | dmg:54.37 | dmg type:-2147483646 | ammo type | hitbox:29 | hitgroup: 0
-2147483646 is DMG_HEADSHOT | DMG_BULLET. That is mean you deal direct damage in head by bullet (not a missile).
Missile moving together with a bullet.

dmg type: 2 - DMG_BULLET
dmg type:128 - DMG_CLUB (it's a melee atack) ... by weapon_tank_claw (tank foot).
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
ricksfishin
Senior Member
Join Date: Oct 2017
Old 11-14-2018 , 12:33   Re: missile_l4d.sp Missle Damage Help
Reply With Quote #15

So far so good i replaced this

if ((damagetype == 0 || damagetype == DMG_LASTGENERICFLAG) && StrEqual(GetClassName(inflictor), "point_hurt", false))
{
return Plugin_Handled;
}
if (damagetype == DMG_BLAST && StrEqual(GetClassName(inflictor), "pipe_bomb_projectile", false))

With this

if ((damagetype == 0 || damagetype == 134217792,2147483646 ) && StrEqual(GetClassName(inflictor), "point_hurt", false))
{
return Plugin_Handled;
}
if (damagetype == 134217792,2147483646 && StrEqual(GetClassName(inflictor), "pipe_bomb_projectile", false))

And seems to be working, will test more.

Last edited by ricksfishin; 11-14-2018 at 13:31.
ricksfishin is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-16-2018 , 02:10   Re: missile_l4d.sp Missle Damage Help
Reply With Quote #16

Quote:
damagetype == 134217792,2147483646
It has no sense. Normally, it should not be compiled (some kind of error in syntax analyzer?)

If you want to check variable for equal to these values, use:
Code:
damagetype == 134217792 || damagetype == 2147483646
__________________
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-16-2018 at 02:14.
Dragokas is offline
ricksfishin
Senior Member
Join Date: Oct 2017
Old 11-16-2018 , 03:48   Re: missile_l4d.sp Missle Damage Help
Reply With Quote #17

If you want to check variable for equal to these values, use:
damagetype == 134217792 || damagetype == 2147483646

This worked Thank you.

Last edited by ricksfishin; 11-16-2018 at 04:23.
ricksfishin 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 20:03.


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