Go to the source code of this file.
Functions | |
| void | snap_esr_constructor () |
| void | snap_esr_main () |
| void | snap_esr_classic () |
| float | snap_esr_classic_level (float entity_z) |
| void | snap_esr_hazard () |
Variables | |
| float | SNAP_ESR_LEVEL_LOWER = -1 |
| float | SNAP_ESR_LEVEL_SAME = 0 |
| float | SNAP_ESR_LEVEL_HIGHER = 1 |
| float | SNAP_ESR_SPECIAL_EXPLOBOX = 10 |
| float | SNAP_ESR_SPECIAL_DROP = 20 |
| float | SNAP_ESR_BEEPTIME_DIVISOR = 1100 |
| float | SNAP_ESR_BEEPTIME_OFFSET = 100 |
| float | SNAP_ESR_NAME_RANGE = 500 |
| float | SNAP_ESR_GAP_TIME = 0.2 |
| sighteds can't identify by sight over greater distances than this | |
| void snap_esr_classic | ( | ) |
Detect enemies and determine what level they are on with respect to the player. Then call the sounder function to produce the sound (the sound produced is dependant on if the enemy is within the FOV of the ESR, which is customisable by the user).
Definition at line 180 of file esr.mqc.
References entity(), SNAP_ESR_BEEPTIME_DIVISOR, SNAP_ESR_BEEPTIME_OFFSET, snap_esr_classic_level(), SNAP_ESR_GAP_TIME, SNAP_ESR_LEVEL_HIGHER, SNAP_ESR_LEVEL_LOWER, SNAP_ESR_LEVEL_SAME, SNAP_ESR_NAME_RANGE, and snap_misc_ownervisible().
Referenced by snap_esr_main().
| float snap_esr_classic_level | ( | float | entity_z | ) |
Work out what level an ESR target is on compared to the player.
| entity_z | the entity's origin's Z component |
Definition at line 677 of file esr.mqc.
References SNAP_ESR_LEVEL_HIGHER, SNAP_ESR_LEVEL_LOWER, and SNAP_ESR_LEVEL_SAME.
Referenced by snap_esr_classic().
| void snap_esr_constructor | ( | ) |
Set up the ESR object.
Definition at line 59 of file esr.mqc.
References entity(), snap_esr_main(), and snap_se_stickysound().
Referenced by agh_client_startdevs(), and agh_weapons_impulsecommands().
| void snap_esr_hazard | ( | ) |
In hazard mode, the ESR detects drops in a similar way that it detects enemies in classic mode. The purpose is to allow the player to make running jumps to ensure that they get across drops detected by the nav object.
Definition at line 702 of file esr.mqc.
References entity(), SNAP_ESR_BEEPTIME_DIVISOR, and snap_misc_m2o().
Referenced by snap_esr_main().
| void snap_esr_main | ( | ) |
Work out what mode we're in and execute it.
Definition at line 132 of file esr.mqc.
References snap_esr_classic(), and snap_esr_hazard().
Referenced by snap_esr_constructor().
| float SNAP_ESR_BEEPTIME_DIVISOR = 1100 |
| float SNAP_ESR_BEEPTIME_OFFSET = 100 |
| float SNAP_ESR_GAP_TIME = 0.2 |
sighteds can't identify by sight over greater distances than this
Definition at line 38 of file esr.mqc.
Referenced by snap_esr_classic().
| float SNAP_ESR_LEVEL_HIGHER = 1 |
Definition at line 28 of file esr.mqc.
Referenced by snap_esr_classic(), and snap_esr_classic_level().
| float SNAP_ESR_LEVEL_LOWER = -1 |
Definition at line 26 of file esr.mqc.
Referenced by snap_esr_classic(), and snap_esr_classic_level().
| float SNAP_ESR_LEVEL_SAME = 0 |
Definition at line 27 of file esr.mqc.
Referenced by snap_esr_classic(), and snap_esr_classic_level().
| float SNAP_ESR_NAME_RANGE = 500 |
| float SNAP_ESR_SPECIAL_DROP = 20 |
| float SNAP_ESR_SPECIAL_EXPLOBOX = 10 |
1.5.4