blob: a340bc3290975b54cc3570d93561312828af4a46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
untyped
// note: had to rename all instances of C_HardPointEntity to CHardPointEntity here, unsure why this was even a thing?
global function CodeCallback_RegisterClass_CHardPointEntity
function CodeCallback_RegisterClass_CHardPointEntity()
{
CHardPointEntity.ClassName <- "CHardPointEntity"
function CHardPointEntity::Enabled()
{
return this.GetHardpointID() >= 0
}
#document( "CHardPointEntity::Enabled", "Returns true if this hardpoint is enabled" )
}
|