Raised This Month: $ Target: $400
 0% 

[TF2]How to get bitfield of damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kgbproject
Member
Join Date: Nov 2014
Location: Russia
Old 05-02-2018 , 09:35   [TF2]How to get bitfield of damage
Reply With Quote #1

Hi guys.
How can i kill player with dissolve effect like from The Short Circuit weapon with dissolve effect ?
i tried to debug damagetype and it is 2097154 value.
So i tried to deal damage to target with 2097154 damagetype and it is not working.
Entity is just dying without dissolve effects.
So, is there other way to kill player with specified effect of this gun ?
Spoiler
__________________
Steam
Making SM plugins for TF2 for money. PM in Steam.

Last edited by kgbproject; 05-02-2018 at 09:36. Reason: Image attach
kgbproject is offline
ThatKidWhoGames
Veteran Member
Join Date: Jun 2013
Location: IsValidClient()
Old 05-02-2018 , 13:56   Re: [TF2]How to get bitfield of damage
Reply With Quote #2

Quote:
Originally Posted by kgbproject View Post
Hi guys.
How can i kill player with dissolve effect like from The Short Circuit weapon with dissolve effect ?
i tried to debug damagetype and it is 2097154 value.
So i tried to deal damage to target with 2097154 damagetype and it is not working.
Entity is just dying without dissolve effects.
So, is there other way to kill player with specified effect of this gun ?
Spoiler
You can do something with DispatchKeyValues and AcceptEntityInput. Check the source code of this plugin: https://forums.alliedmods.net/showthread.php?t=71084
ThatKidWhoGames is offline
kgbproject
Member
Join Date: Nov 2014
Location: Russia
Old 05-03-2018 , 06:36   Re: [TF2]How to get bitfield of damage
Reply With Quote #3

No, i need to call somehow an death event of player with already prepared effect like from this gun.
No entities support need.
__________________
Steam
Making SM plugins for TF2 for money. PM in Steam.
kgbproject is offline
ThatKidWhoGames
Veteran Member
Join Date: Jun 2013
Location: IsValidClient()
Old 05-03-2018 , 08:26   Re: [TF2]How to get bitfield of damage
Reply With Quote #4

Quote:
Originally Posted by kgbproject View Post
No, i need to call somehow an death event of player with already prepared effect like from this gun.
No entities support need.
Oh, did you mean setting an attribute for the weapon? My bad if that is what you meant.
ThatKidWhoGames is offline
Scag
AlliedModders Donor
Join Date: May 2017
Location: Crashing Hale
Old 05-03-2018 , 17:23   Re: [TF2]How to get bitfield of damage
Reply With Quote #5

You could try DMG_DISSOLVE but I'm not 100% positive on it. On the other hand, I'm not sure what you're using to debug but SDKHook's damagetype being printed obviously grants a vividly incorrect number. I think it's printing bit-length?
__________________
Over-engineering is underrated.

GitHub
BTC
ETH

Retired
Scag is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 05-03-2018 , 22:54   Re: [TF2]How to get bitfield of damage
Reply With Quote #6

2097154 only has two bits set. That doesn't seem like it's obviously wrong.
Fyren is offline
kgbproject
Member
Join Date: Nov 2014
Location: Russia
Old 05-04-2018 , 12:28   Re: [TF2]How to get bitfield of damage
Reply With Quote #7

I taken all debug data from killing player with this gun and putted this all in function.
Player just dying w/o effect.
__________________
Steam
Making SM plugins for TF2 for money. PM in Steam.
kgbproject 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 01:49.


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