AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ExecuteHam don't show killer (https://forums.alliedmods.net/showthread.php?t=220078)

~Ice*shOt 07-06-2013 17:17

ExecuteHam don't show killer
 
This should write in deathmsg something like 'Player (grenade icon) Player2', shouldn't it?

PHP Code:

iGrenade create_entity("grenade")
 
ExecuteHam(Ham_TakeDamageVictimiGrenadeOwner100.0DMG_BLAST

Because this writes nothing when player get killed.

Blizzard_87 07-06-2013 20:25

Re: ExecuteHam don't show killer
 
Quote:

Originally Posted by ~Ice*shOt (Post 1984926)
This should write in deathmsg something like 'Player (grenade icon) Player2', shouldn't it?

PHP Code:

iGrenade create_entity("grenade")
 
ExecuteHam(Ham_TakeDamageVictimiGrenadeOwner100.0DMG_BLAST

Because this writes nothing when player get killed.

where is this code executed? please show full code.

ConnorMcLeod 07-07-2013 03:21

Re: ExecuteHam don't show killer
 
Make sure owner is set, and pass DMG_HEGRENADE (1<<24) instead DMG_BLAST

DMG_BLAST is c4 damage, and as you may have noticed, there are no DeathMsg on C4 explosion.

~Ice*shOt 07-07-2013 06:26

Re: ExecuteHam don't show killer
 
Quote:

Originally Posted by ConnorMcLeod (Post 1985150)
Make sure owner is set, and pass DMG_HEGRENADE (1<<24) instead DMG_BLAST

DMG_BLAST is c4 damage, and as you may have noticed, there are no DeathMsg on C4 explosion.

Hmm now it works, when i replaced DMG_BLAST with DMG_HEGRENADE (1<<24)
But how then make for example when player dies after execute his body blow away?

ConnorMcLeod 07-07-2013 06:34

Re: ExecuteHam don't show killer
 
Try : ExecuteHam(Ham_TakeDamage, Victim, iGrenade, Owner, 100.0, DMG_ALWAYSGIB | DMG_HEGRENADE)

~Ice*shOt 07-07-2013 06:42

Re: ExecuteHam don't show killer
 
Well, have to use this.. Thanks for help


All times are GMT -4. The time now is 06:29.

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