Garry's Mod Wiki

CTakeDamageInfo:SetBaseDamage

  CTakeDamageInfo:SetBaseDamage( number )

Description

Sets the initial damage, unmodified by the current skill level (game.GetSkillLevel). This is usually set automatically by the game when dealing damage.

This function will not modify the real damage that will be dealt (CTakeDamageInfo:GetDamage).

Use this only if you know what you are doing. Otherwise use CTakeDamageInfo:SetDamage.

Arguments

1 number
The base damage.