Nuclide
Software Development Kit for id Tech
func_friction Class Reference

Shared-Entity: Ground Friction Override Volume. More...

Inheritance diagram for func_friction:
NSEntity

Public Member Functions

void func_friction (void)
 
virtual void Touch (entity)
 Called whenever we're touching another entity. More...
 
virtual void Respawn (void)
 Server: Called when the entity first spawns or when game-logic requests the entity to return to its original spawn state. More...
 
virtual void SpawnKey (string, string)
 This method handles entity key/value pairs on map load. More...
 

Detailed Description

Shared-Entity: Ground Friction Override Volume.

QUAKED func_friction (0 .5 .8) ?

OVERVIEW

Volume that permanently adds a modifier that affects an entities' friction. Higher value = less friction.

KEYS

  • "targetname" : Name
  • "modifier" : Friction modifier.

NOTES

Similar to trigger_gravity in that you want to make sure the friction is reset around the primary volume in case that's the effect that you desire.

TRIVIA

This entity was introduced in Half-Life (1998).

Constructor & Destructor Documentation

◆ func_friction()

void func_friction::func_friction ( void  )

Member Function Documentation

◆ Respawn()

void func_friction::Respawn ( void  )
virtual

Server: Called when the entity first spawns or when game-logic requests the entity to return to its original spawn state.

Reimplemented from NSEntity.

◆ SpawnKey()

void func_friction::SpawnKey ( string  strKey,
string  strValue 
)
virtual

This method handles entity key/value pairs on map load.

You can easily convert the strValue parameter using the ReadFloat etc. methods that are part of NSIO.

Reimplemented from NSEntity.

◆ Touch()

void func_friction::Touch ( entity  eToucher)
virtual

Called whenever we're touching another entity.

Reimplemented from NSTrigger.


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