Garry's Mod Wiki

GM:PlayerTraceAttack

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

1 Player ply
The player that has been hit
2 CTakeDamageInfo dmginfo
The damage info of the bullet
3 Vector dir
Normalized vector direction of the bullet's path
4 table trace
The trace of the bullet's path, see Structures/TraceResult

Returns

1 boolean
Override engine handling

Page Links


Special Pages


Wikis

?

Render Time: 47ms

DB GetPage 8
Generate Html 13
SaveChanges (1) 10
Render Body 0
Render Sidebar 12