Possible or Impossible?
Hi,
how make protection for 2 players during duel on deathrun? More precisely other alive players(CTs) cant kill T which has duel with choosen CT. But they can kill themselves. I didnt fin anything about this possibility. I will be grateful for every advice thanks. |
Re: Possible or Impossible?
Hook the Damage event in Pre and check who the attacker is. If the attacker is not part of the duel, block the damage.
|
Re: Possible or Impossible?
Quote:
1. Hook Ham_TakeDamage as pre. 2. Check if the damage comes from other players, a bool like in_duel[33] or by backuping players ids( the ones that are dueling ) 3. Return HAM_SUPERCEDE to block the function. |
Re: Possible or Impossible?
Got it, CTs cant kill T during duel but T can kill other CTs. How to solve it?
CT_Player = id T_Player = T Code:
public player_attack(victim, attacker, Float:damage, Float:direction[3], tracehandle, damagebits) |
Re: Possible or Impossible?
when you block only takedamage, other players can still interfere by applying aimpunch, i think this can be stopped when you also block traceattack
|
Re: Possible or Impossible?
Quote:
|
Re: Possible or Impossible?
PHP Code:
|
| All times are GMT -4. The time now is 17:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.