Nuclide
Software Development Kit for id Technology
|
This entity class represents point-entity triggers.
It's primary function is to consistently set up triggers. In your sub-class you'll probably want to call NSTrigger::InitPointTrigger()
inside its NSIO::Respawn()
reimplementation.
Public Member Functions | |
void | NSPointTrigger (void) |
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 | DebugDraw (void) |
nonvirtual void | InitPointTrigger (void) |
Sets up a point entity trigger with no size. More... | |
virtual void | SpawnKey (string, string) |
This method handles entity key/value pairs on map load. More... | |
virtual void | Save (float) |
Handles saving a copy of this entity to a given filehandle. More... | |
virtual void | Restore (string, string) |
Similar to NSIO::SpawnKey but for save-game fields. More... | |
void NSPointTrigger::NSPointTrigger | ( | void | ) |
|
virtual |
Reimplemented from NSEntity.
Reimplemented in light, path_track, scripted_sequence, and NSSoundScape.
void NSPointTrigger::InitPointTrigger | ( | void | ) |
Sets up a point entity trigger with no size.
|
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.
Reimplemented in light_environment, env_explosion, env_message, env_spark, game_counter, game_counter_set, info_node, info_node_air, infodecal, light, logic_auto, logic_case, logic_relay, logic_timer, monstermaker, multi_manager, multisource, path_corner, path_track, point_camera, point_trigger, random_speaker, random_trigger, scripted_sequence, targ_speaker, target_cdaudio, target_speaker, trigger_auto, trigger_relay, env_bubbles, env_cascade_light, env_fog, env_fog_controller, env_instructor_hint, logic_achievement, NSSound, and NSSpawnPoint.
|
virtual |
Similar to NSIO::SpawnKey
but for save-game fields.
Whatever you write into file handles within your NSIO::Save()
method needs to be read back in here.
Reimplemented from NSEntity.
Reimplemented in env_explosion, env_global, env_hudhint, env_message, env_physexplosion, env_shake, env_spark, game_counter, game_counter_set, game_player_equip, game_player_hurt, game_score, game_team_master, game_text, info_hint, infodecal, light, logic_auto, logic_case, logic_timer, monstermaker, multi_manager, path_corner, path_track, point_camera, point_trigger, random_speaker, random_trigger, scripted_sentence, scripted_sequence, targ_speaker, target_cdaudio, trigger_auto, trigger_changetarget, trigger_relay, env_bubbles, env_cascade_light, env_fog, env_fog_controller, env_instructor_hint, info_waypoint, logic_achievement, and NSSoundScape.
|
virtual |
Handles saving a copy of this entity to a given filehandle.
Within you want to use the NSIO::SaveFloat() etc. methods to write the internal member attributes to the specified file handle.
Reimplemented from NSEntity.
Reimplemented in env_explosion, env_global, env_hudhint, env_message, env_physexplosion, env_shake, env_spark, game_counter, game_counter_set, game_player_equip, game_player_hurt, game_score, game_team_master, game_text, info_hint, infodecal, light, logic_auto, logic_case, logic_timer, monstermaker, multi_manager, path_corner, path_track, point_camera, point_trigger, random_speaker, random_trigger, scripted_sentence, scripted_sequence, targ_speaker, target_cdaudio, trigger_auto, trigger_changetarget, trigger_relay, env_bubbles, env_cascade_light, env_fog, env_fog_controller, env_instructor_hint, info_waypoint, logic_achievement, and NSSoundScape.
|
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.
Reimplemented in env_fire, infodecal, light_environment, env_explosion, env_global, env_hudhint, env_message, env_physexplosion, env_shake, env_sound, env_spark, game_counter, game_counter_set, game_player_equip, game_player_hurt, game_score, game_team_master, game_text, info_hint, infodecal, light, light_environment, logic_auto, logic_case, logic_relay, logic_timer, monstermaker, multi_manager, path_corner, path_track, point_camera, point_trigger, random_speaker, random_trigger, scripted_sentence, scripted_sequence, targ_speaker, target_cdaudio, target_speaker, trigger_auto, trigger_changetarget, trigger_relay, env_bubbles, env_cascade_light, env_fog, env_fog_controller, env_instructor_hint, info_waypoint, light_dynamic, logic_achievement, and NSSoundScape.