Syntax: Select all
@Event
def player_hurt(game_event):
attacker_userid = game_event.get_int('attacker')
victim_userid = game_event.get_int('userid')
damage = game_event.get_int('dmg_health')
attacker = dndPlayerDictionary[attacker_userid]
victim = dndPlayerDictionary[victim_userid]
tell(playerinfo_from_userid(attacker_userid), 'victim hp: %s'%victim.health)
Still not finding health as an attribute after updating from the Jan 17th release.
Top of \source-python\data\source-python\properties\player\csgo.ini
Code: Select all
[health]
prop = 'm_iHealth'
type = 'int'
E: Yeah looks like there were a lot of changes... doing a fresh install.
EE: After wiping csgo/addons/ and putting a fresh copy there, still same error. Windows x64