Xonotic
|
Go to the source code of this file.
Functions | |
STATIC_INIT (g_jumppads) | |
vector | trigger_push_calculatevelocity (vector org, entity tgt, float ht, entity pushed_entity) |
void | trigger_push_findtarget (entity this) |
bool | trigger_push_test (entity this, entity item) |
if (item != NULL) returns true if the item can be reached by using this jumppad, false otherwise if (item == NULL) tests jumppad's trajectory and eventually spawns waypoints for it (return value doesn't matter) More... | |
void | trigger_push_touch (entity this, entity toucher) |
Variables | |
vector | dest |
IntrusiveList | g_jumppads |
float | height |
bool | istypefrag |
float | jumppadcount |
entity | jumppadsused [NUM_JUMPPADSUSED] |
const int | NUM_JUMPPADSUSED = 3 |
const int | PUSH_ONCE = BIT(0) |
const int | PUSH_SILENT = BIT(1) |
float | pushltime |
STATIC_INIT | ( | g_jumppads | ) |
Definition at line 31 of file jumppads.qc.
References fabs(), normalize(), NULL, solve_quadratic(), sqrt(), vector(), and vlen().
Referenced by jumppad_push(), trigger_push_test(), and trigger_push_touch().
Definition at line 558 of file jumppads.qc.
References active, ACTIVE_ACTIVE, angles, BITSET_ASSIGN, cnt, drawmask, EF_NODEPTHTEST, effects, entity(), g_jumppads, height, IL_PUSH(), InitializeEntity(), jumppad_push(), mangle, MASK_NORMAL, move_time, movedir, NET_HANDLE, noise, NULL, origin, precache_sound(), ReadString, setorigin(), SF_TRIGGER_INIT, solid, SOLID_TRIGGER, spawnflags, spawnfunc(), speed, strfree, strzone(), target, targetname, team, time, to, trigger_push_findtarget(), trigger_push_test(), trigger_push_touch(), use, WriteByte(), WriteCoord(), and WriteString().
Referenced by trigger_push_findtarget().
if (item != NULL) returns true if the item can be reached by using this jumppad, false otherwise if (item == NULL) tests jumppad's trajectory and eventually spawns waypoints for it (return value doesn't matter)
Definition at line 387 of file jumppads.qc.
References absmax, absmin, boxesoverlap(), DPCONTENTS_BODY, DPCONTENTS_BOTCLIP, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SOLID, enemy, entity(), eZ, fabs(), find(), height, if(), LABEL, min(), movedir, MOVETYPE_NONE, normalize(), NULL, objerror(), setorigin(), spawn(), target, targetname, team, trace_endpos, trace_ent, trigger_push_calculatevelocity(), vdist, vec2, vector(), vlen(), and waypoint_spawnforteleporter().
Referenced by navigation_findnearestwaypoint_withdist_except(), and trigger_push_findtarget().
Definition at line 260 of file jumppads.qc.
References absmax, absmin, active, ACTIVE_NOT, DIFF_TEAM, DPCONTENTS_BODY, DPCONTENTS_BOTCLIP, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SOLID, enemy, entity(), EXACTTRIGGER_TOUCH, eZ, func_null(), height, INVERT_TEAMS, jumppad_push(), movedir, nextthink, NULL, PUSH_ONCE, setorigin(), setthink, spawn(), spawnflags, sqrt(), stepheightvec, target, team, time, trace_endpos, trace_ent, trace_startsolid, trigger_push_calculatevelocity(), trigger_push_get_push_time(), v, vdist, vec2, and vector().
Referenced by trigger_push_findtarget().
vector dest |
Definition at line 41 of file jumppads.qh.
Referenced by Container_moveItemAfter(), get_closer_dest(), and waypoint_spawnforteleporter_wz().
IntrusiveList g_jumppads |
Definition at line 7 of file jumppads.qh.
Referenced by navigation_findnearestwaypoint_withdist_except(), trigger_push_findtarget(), waypoint_addlink_for_custom_jumppad(), waypoint_get_type_name(), and waypoint_spawn_fromeditor().
float height |
Definition at line 12 of file jumppads.qh.
Referenced by _dumptree_close(), draw_BorderPicture(), draw_ButtonPicture(), draw_VertButtonPicture(), GetOrthoviewFOV(), HUD_Panel_DrawProgressBar(), jumppad_push(), Scoreboard_AccuracyStats_Draw(), Scoreboard_ItemStats_Draw(), Scoreboard_MakeTable(), train_next(), trigger_keylock_touch(), trigger_push_findtarget(), trigger_push_test(), trigger_push_touch(), updateConwidths(), WarpZone_FixView(), and waypoint_gettravelcost().
bool istypefrag |
Definition at line 11 of file jumppads.qh.
Referenced by PlayerDamage(), and PutObserverInServer().
float jumppadcount |
Definition at line 15 of file jumppads.qh.
Referenced by havocbot_ai(), havocbot_movetogoal(), navigation_poptouchedgoals(), PlayerJump(), sys_phys_land(), and sys_phys_update().
entity jumppadsused[NUM_JUMPPADSUSED] |
Definition at line 16 of file jumppads.qh.
const int NUM_JUMPPADSUSED = 3 |
Definition at line 14 of file jumppads.qh.
Referenced by jumppad_push().
Definition at line 4 of file jumppads.qh.
Referenced by trigger_push_touch().
Definition at line 5 of file jumppads.qh.
float pushltime |
Definition at line 10 of file jumppads.qh.
Referenced by _Movetype_PushMove(), jumppad_push(), kh_Key_Damage(), PlayerDamage(), PutObserverInServer(), and PutPlayerInServer().