GM:PlayerTraceAttack

From Garry's Mod
Jump to: navigation, search
 GM:PlayerTraceAttack( )

Contents

Description

Called when a player has been hit by a trace and damaged (such as from a bullet). Returning true overrides the damage handling and prevents GM:ScalePlayerDamage from being called.

Arguments

Player ply

The player that has been hit

Arguments

CTakeDamageInfo dmginfo

The damage info of the bullet

Arguments

Vector dir

Normalized vector direction of the bullet's path

Arguments

table trace

The trace of the bullet's path, see TraceResult structure

Returns

boolean

Override engine handling
Personal tools
Navigation