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

How to make the shield is not destroyed when teammate attacks it?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GanHUNTER
Junior Member
Join Date: Oct 2019
Old 06-24-2020 , 05:00   How to make the shield is not destroyed when teammate attacks it?
Reply With Quote #1

Hello.
As in the title. How to make the shield is not destroyed when teammate attacks it?

I tried to use sdkhook OnTakeDamage but when a player has a shield, teammate can still destroy it.
But when a player drop a shield to the ground, teammate cannot destroy it.

Can you help me?


Sorry for my bad english..

Regards. ;)
GanHUNTER is offline
thEsp
BANNED
Join Date: Aug 2017
Old 06-25-2020 , 17:08   Re: How to make the shield is not destroyed when teammate attacks it?
Reply With Quote #2

If it's not possible to hook OnTakeDamage while holding it then you should probably hook TraceAttack and check if the attacker is pointing at a shield. At least that's what I used to do in the original CS and it worked perfectly fine.
thEsp is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 06-26-2020 , 12:22   Re: How to make the shield is not destroyed when teammate attacks it?
Reply With Quote #3

Did you use SDKHook(client,...) or SDKHook(shield,...)?
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 06-26-2020 , 14:24   Re: How to make the shield is not destroyed when teammate attacks it?
Reply With Quote #4

SDKTrace or SDKDamage (on clients) are not triggered while the victim holds the shield.
SDKTrace or SDKDamage (on shield entities) are not triggered while the clients are holding them (idk if are triggered on dropped shields).
__________________
Ilusion9 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 09:42.


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