Senior Member
Join Date: Oct 2008
Location: /var/www/index.html
|
04-05-2020
, 09:38
List of SDKHook Damage Type
|
#1
|
I write a little code (SDKHook) for damage:
PHP Code:
public Action SDK_OnTakeDamage(int victim, int &attacker, int &inflictor, float &damage, int &damagetype)
{
PrintToChatAll("\x01Victim: \x05%N\x01, Attacker: \x05%N, \x01Type: \x03%d", victim, attacker, damagetype);
if (victim > 0 && attacker == 0)
{
if (damagetype == 32) // fall damage
ForcePlayerSuicide(victim);
return Plugin_Continue;
}
}
During in-game, it print:
Code:
Victim: Carol Brown, Attacker: Brandon Flores, Type: -2147483646
Victim: Harold Scott, Attacker: Rebecca Edwards, Type: 263168
Victim: Anime4000, Attacker: Rebecca Edwards, Type: 263168
Victim: Thomas Johnson, Attacker: Brandon Flores, Type: -2147483646
Victim: Anime4000, Attacker: Rebecca Edwards, Type: 263168
Victim: Anime4000, Attacker: Rebecca Edwards, Type: 263168
Victim: Harold Scott, Attacker: Francis, Type: -1610612734
Victim: Carol Brown, Attacker: Francis, Type: -1610612734
Victim: Harold Scott, Attacker: Francis, Type: -1610612734
Victim: Harold Scott, Attacker: Francis, Type: -1610612734
Victim: Harold Scott, Attacker: Francis, Type: -1610612734
Victim: Harold Scott, Attacker: Francis, Type: -1610612734
Victim: Harold Scott, Attacker: Francis, Type: -1610612734
Victim: Louis, Attacker: Rebecca Edwards, Type: 263168
Victim: Harold Scott, Attacker: Rebecca Edwards, Type: 263168
Victim: Anime4000, Attacker: Rebecca Edwards, Type: 263168
Victim: Louis, Attacker: Brenda Bennett, Type: -1073741822
Victim: Anime4000, Attacker: Brandon Flores, Type: -2147483646
Victim: Thomas Johnson, Attacker: Harold Scott, Type: -2147483646
Victim: Francis, Attacker: Annie Robinson, Type: -1073741822
Victim: Brenda Bennett, Attacker: Rebecca Edwards, Type: 263168
Victim: Louis, Attacker: Rebecca Edwards, Type: 263168
Victim: Anime4000, Attacker: Rebecca Edwards, Type: 263168
Victim: Francis, Attacker: Annie Robinson, Type: -1073741822
Victim: Anime4000, Attacker: Rebecca Edwards, Type: 263168
Victim: Anime4000, Attacker: Brandon Flores, Type: -2147483646
Victim: Francis, Attacker: Annie Robinson, Type: -1073741822
Victim: Francis, Attacker: Annie Robinson, Type: -1073741822
Victim: Thomas Johnson, Attacker: Bill, Type: -2147483646
Victim: Francis, Attacker: Annie Robinson, Type: -1073741822
Victim: Brenda Bennett, Attacker: Rebecca Edwards, Type: 263168
Victim: Louis, Attacker: Rebecca Edwards, Type: 263168
Victim: Anime4000, Attacker: Rebecca Edwards, Type: 263168
Victim: Thomas Johnson, Attacker: Bill, Type: -2147483646
Victim: Louis, Attacker: Brandon Flores, Type: -1073741822
Victim: Francis, Attacker: Annie Robinson, Type: -2147483646
Victim: Thomas Johnson, Attacker: Annie Robinson, Type: -2147483646
Victim: Thomas Johnson, Attacker: Brenda Bennett, Type: -2147483646
Victim: Carol Brown, Attacker: Brenda Bennett, Type: -2147483646
Victim: Francis, Attacker: Annie Robinson, Type: -2147483646
Victim: Louis, Attacker: Rebecca Edwards, Type: 263168
Victim: Anime4000, Attacker: Rebecca Edwards, Type: 263168
Victim: Anime4000, Attacker: Brandon Flores, Type: -1073741822
Victim: Carol Brown, Attacker: Brandon Flores, Type: -2147483646
Victim: Francis, Attacker: Annie Robinson, Type: -2147483646
Victim: Carol Brown, Attacker: Bill, Type: -2147483646
Victim: Anime4000, Attacker: Brandon Flores, Type: -2147483646
Victim: Francis, Attacker: Annie Robinson, Type: -1073741822
Victim: Carol Brown, Attacker: Annie Robinson, Type: -2147483646
Victim: Francis, Attacker: Annie Robinson, Type: -1073741822
Victim: Harold Scott, Attacker: Annie Robinson, Type: -1073741822
Victim: Harold Scott, Attacker: Annie Robinson, Type: -2147483646
Victim: Francis, Attacker: Annie Robinson, Type: -1073741822
Victim: Carol Brown, Attacker: Annie Robinson, Type: -1073741822
Victim: Anime4000, Attacker: Louis, Type: -2147483646
Victim: Anime4000, Attacker: Brandon Flores, Type: -1073741822
Victim: Harold Scott, Attacker: Annie Robinson, Type: -2147483646
Victim: Harold Scott, Attacker: Brenda Bennett, Type: -1073741822
Victim: Harold Scott, Attacker: Annie Robinson, Type: -1073741822
Victim: Harold Scott, Attacker: Annie Robinson, Type: -1073741822
Victim: Harold Scott, Attacker: Annie Robinson, Type: -1073741822
Victim: Harold Scott, Attacker: Annie Robinson, Type: -2147483646
Victim: Francis, Attacker: Annie Robinson, Type: -1073741822
Victim: Harold Scott, Attacker: Annie Robinson, Type: -2147483646
Victim: Carol Brown, Attacker: Louis, Type: -2147483646
Victim: Harold Scott, Attacker: Annie Robinson, Type: -2147483646
Victim: Harold Scott, Attacker: Annie Robinson, Type: -1073741822
Victim: Harold Scott, Attacker: Annie Robinson, Type: -1073741822
Victim: Carol Brown, Attacker: Brenda Bennett, Type: -2147483646
Victim: Harold Scott, Attacker: Annie Robinson, Type: -2147483646
Victim: Anime4000, Attacker: Console, Type: 32
#Cstrike_TitlesTXT_Game_connected
I wonder where those value come from? Is there any list for this?
__________________
|
|