Nuclide
Software Development Kit for id Technology (BETA)
ncAttack Class Reference

About this class

This entity class represents an attack.

Usually spawned by a decl's fireInfo properties.

OVERVIEW

ncAttack is currently the main spot for various miscallanous attack types that don't fit into ncProjectile.

KEYS

  • "plant" : When 1, will plant the entityDef defined in "def_plant" against surfaces.
  • "drop" : When 1, will drop the entityDef defined in "def_drop" near us.
  • "def_plant" : Name of the entityDef to plant.
  • "def_drop" : Name of the entityDef to drop.
  • "plantOnGround" : Only allow planting on ground. Think C4 in CS.
  • "plantDistance" : Distance at which we're testing for surfaces.
  • "plantOffset" : Offset the planted entityDef this many units from the surface it's attached to.
  • "dropDistance" : Drop the entityDef this many units away from us.
Inheritance diagram for ncAttack:
ncSurfacePropEntity ncProjectile

Public Member Functions

void ncAttack (void)
 
virtual void Launch (vector, vector, float, float, float)
 
nonvirtual void SetWeaponOwner (ncWeapon)
 
nonvirtual ncWeapon GetWeaponOwner (void)
 

Constructor & Destructor Documentation

◆ ncAttack()

void ncAttack::ncAttack ( void  )

Member Function Documentation

◆ GetWeaponOwner()

ncWeapon ncAttack::GetWeaponOwner ( void  )

◆ Launch()

void ncAttack::Launch ( vector  startPos,
vector  launchDir,
float  fuseOffset,
float  powerMultiplier,
float  dmgMultiplier 
)
virtual

Reimplemented in ncProjectile.

◆ SetWeaponOwner()

void ncAttack::SetWeaponOwner ( ncWeapon  weaponOwner)

The documentation for this class was generated from the following files: