|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "defs.qh"Go to the source code of this file.
Definition at line 393 of file subs.qc.
References entity(), max(), RoundPerfectVector(), and vlen().
Referenced by func_breakable_look_destroyed(), func_breakable_look_restore(), and SetBrushEntityModel().
Definition at line 577 of file subs.qc.
References entity(), modelindex, MOVETYPE_PUSH, objerror, set_movetype(), SetBrushEntityModel(), solid, and SOLID_BSP.
Referenced by spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), and spawnfunc().
Definition at line 565 of file subs.qc.
References entity(), model, MOVETYPE_NONE, set_movetype(), SetBrushEntityModel(), SetMovedir(), solid, and SOLID_BSP.
Definition at line 553 of file subs.qc.
References entity(), model, modelindex, MOVETYPE_NONE, set_movetype(), SetBrushEntityModel(), SetMovedir(), solid, and SOLID_TRIGGER.
Referenced by spawnfunc().
Definition at line 443 of file subs.qc.
References autocvar_loddebug, entity(), lodmodelindex0, lodmodelindex1, lodmodelindex2, modelindex, NearestPointOnBox(), vdist, and vector.
Referenced by LODmodel_attach().
Definition at line 469 of file subs.qc.
References entity(), lodmodelindex0, and modelindex.
Referenced by LODmodel_attach().
Definition at line 474 of file subs.qc.
References autocvar_loddebug, entity(), fexists(), find(), getSendEntity, LOD_customize(), LOD_uncustomize(), loddistance1, loddistance2, lodmodel1, lodmodel2, lodmodelindex0, lodmodelindex1, lodmodelindex2, lodtarget1, lodtarget2, maxs, mins, modelindex, NULL, SetCustomizer(), targetname, and vector.
Referenced by SetBrushEntityModel().
Definition at line 420 of file subs.qc.
References ApplyMinMaxScaleAngles(), entity(), InitializeEntity(), INITPRIO_FINDTARGET, LODmodel_attach(), maxs, mins, model, origin, and vector.
Referenced by func_breakable_setup(), g_clientmodel_init(), g_model_init(), InitMovingBrushTrigger(), InitSolidBSPTrigger(), InitTrigger(), spawnfunc(), and spawnfunc().
Definition at line 540 of file subs.qc.
References angles, entity(), makevectors, movedir, normalize(), and v_forward.
Referenced by InitSolidBSPTrigger(), InitTrigger(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), and spawnfunc().
| spawnfunc | ( | info_null | ) |
| void SUB_CalcAngleMove | ( | entity | this, |
| vector | destangle, | ||
| float | tspeedtype, | ||
| float | tspeed, | ||
| void(entity this) | func ) |
Definition at line 347 of file subs.qc.
References angles, angles_y, avelocity, entity(), finalangle, floor(), ltime, nextthink, objerror, setthink, SUB_CalcAngleMoveDone(), TSPEED_END, TSPEED_LINEAR, TSPEED_START, TSPEED_TIME, vector, and vlen().
Referenced by door_rotating_go_down(), door_rotating_go_up(), SUB_CalcAngleMoveEnt(), and train_wait().
Definition at line 336 of file subs.qc.
References angles, avelocity, entity(), finalangle, nextthink, and SUB_CalcAngleMoveDone().
Referenced by SUB_CalcAngleMove(), and SUB_CalcAngleMoveDone().
| void SUB_CalcAngleMoveEnt | ( | entity | ent, |
| vector | destangle, | ||
| float | tspeedtype, | ||
| float | tspeed, | ||
| void(entity this) | func ) |
Definition at line 387 of file subs.qc.
References entity(), SUB_CalcAngleMove(), and vector.
| void SUB_CalcMove | ( | entity | this, |
| vector | tdest, | ||
| float | tspeedtype, | ||
| float | tspeed, | ||
| void(entity this) | func ) |
Definition at line 267 of file subs.qc.
References entity(), finaldest, ltime, nextthink, objerror, origin, platmovetype_end, platmovetype_start, setthink, SUB_CalcMove_Bezier(), SUB_CalcMoveDone(), TSPEED_END, TSPEED_LINEAR, TSPEED_START, TSPEED_TIME, vector, velocity, and vlen().
Referenced by button_fire(), button_return(), door_go_down(), door_go_up(), fd_secret_move2(), fd_secret_move4(), fd_secret_move6(), fd_secret_use(), plat_go_down(), plat_go_up(), SUB_CalcMoveEnt(), and train_next().
| void SUB_CalcMove_Bezier | ( | entity | this, |
| vector | tcontrol, | ||
| vector | tdest, | ||
| float | tspeedtype, | ||
| float | tspeed, | ||
| void(entity this) | func ) |
Definition at line 204 of file subs.qc.
References entity(), finaldest, getthink, ltime, move_controller, MOVETYPE_NONE, new_pure, nextthink, NULL, objerror, origin, platmovetype, platmovetype_end, platmovetype_start, set_movetype(), setthink, SUB_CalcMove_controller_setbezier(), SUB_CalcMove_controller_think(), SUB_CalcMoveDone(), SUB_NullThink(), time, TSPEED_END, TSPEED_LINEAR, TSPEED_START, TSPEED_TIME, vector, velocity, and vlen().
Referenced by SUB_CalcMove(), and train_next().
| void SUB_CalcMove_controller_setbezier | ( | entity | controller, |
| vector | org, | ||
| vector | control, | ||
| vector | dest ) |
Definition at line 174 of file subs.qc.
References entity(), org, and vector.
Referenced by SUB_CalcMove_Bezier().
Definition at line 190 of file subs.qc.
Definition at line 114 of file subs.qc.
References animstate_endtime, animstate_starttime, cubic_speedfunc(), destvec, destvec2, entity(), finaldest, floor(), getthink, nextthink, NULL, origin, owner, PHYS_INPUT_FRAMETIME, platmovetype_end, platmovetype_start, setthink, time, vectoangles(), and vector.
Referenced by SUB_CalcMove_Bezier().
Definition at line 94 of file subs.qc.
References entity(), finaldest, nextthink, SUB_CalcMoveDone(), and velocity.
Referenced by SUB_CalcMove(), SUB_CalcMove_Bezier(), and SUB_CalcMoveDone().
| void SUB_CalcMoveEnt | ( | entity | ent, |
| vector | tdest, | ||
| float | tspeedtype, | ||
| float | tspeed, | ||
| void(entity this) | func ) |
Definition at line 321 of file subs.qc.
References entity(), SUB_CalcMove(), and vector.
Definition at line 105 of file subs.qc.
References entity(), frametime, and move_controller.
Referenced by door_blocked().
Definition at line 3 of file subs.qc.
References entity().
Referenced by pong_ball_reset(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), and SUB_CalcMove_Bezier().
Definition at line 77 of file subs.qc.
References entity(), setthink, and SUB_SetFade_Think().
Referenced by LaunchDebris(), Monster_Dead_Fade(), PlayerDamage(), Portal_Remove(), respawn(), and spiderbot_blowup().
Definition at line 57 of file subs.qc.
References alpha, entity(), fade_rate, frametime, nextthink, setthink, SUB_SetFade_Think(), SUB_VanishOrRemove(), and time.
Referenced by SUB_SetFade(), and SUB_SetFade_Think().
Definition at line 38 of file subs.qc.
References entity(), and IS_CLIENT.
Referenced by SUB_SetFade_Think().
| int autocvar_loddebug |
Definition at line 122 of file subs.qh.
Referenced by LOD_customize(), and LODmodel_attach().
| string curvetarget |
Definition at line 56 of file subs.qh.
Referenced by train_send().
| const int DAMAGE_AIM = 2 |
Definition at line 81 of file subs.qh.
Referenced by bumblebee_gunner_exit(), Damage(), FireGrapplingHook(), func_breakable_behave_restore(), M_Mage_Attack_Spike_Think(), M_Wyvern_Attack_Fireball_Explode(), Monster_Dead(), Monster_Spawn(), MUTATOR_HOOKFUNCTION(), napalm_damage(), ons_ControlPoint_Icon_Spawn(), ons_GeneratorReset(), ons_GeneratorSetup(), onslaught_updatelinks(), Portal_Spawn(), PutPlayerInServer(), sandbox_ObjectSpawn(), toss_nade(), turret_initialize(), turret_respawn(), vehicles_exit(), vehicles_projectile(), vehicles_spawn(), W_Arc_Bolt_Touch(), W_Devastator_Explode(), W_Electro_Explode(), W_Electro_Orb_Touch(), W_Fireball_Explode(), W_Fireball_Firemine_Touch(), W_Fireball_LaserPlay(), W_Hagar_Touch2(), W_MineLayer_Explode(), W_Mortar_Grenade_Explode(), W_Mortar_Grenade_Explode2(), W_Mortar_Grenade_Touch1(), W_Mortar_Grenade_Touch2(), W_RocketMinsta_Laser_Explode(), W_Seeker_Missile_Think(), and W_Seeker_Tag_Touch().
| const int DAMAGE_NO = 0 |
Definition at line 79 of file subs.qh.
Referenced by bumblebee_gunner_enter(), bumblebee_pilot_frame(), button_fire(), ctf_FlagSetup(), ctf_Handle_Pickup(), ctf_Handle_Retrieve(), ctf_Handle_Throw(), ctf_RespawnFlag(), door_blocked(), door_damage(), door_generic_plat_blocked(), func_breakable_behave_destroyed(), func_breakable_damage(), func_breakable_setup(), generic_plat_blocked(), hk_is_valid_target(), ka_TouchEvent(), kh_Key_Attach(), M_Golem_Attack_Lightning_Explode(), M_Spider_Attack_Web(), Monster_Dead_Fade(), Monster_Enemy_Check(), Monster_ValidTarget(), multi_trigger(), MUTATOR_HOOKFUNCTION(), nade_damage(), ons_GeneratorDamage(), onslaught_updatelinks(), plat_crush(), PlayerCorpseDamage(), PlayerFrame(), PlayerUseKey(), Portal_MakeBrokenPortal(), Portal_MakeInPortal(), PutObserverInServer(), racer_frame(), raptor_frame(), respawn(), sandbox_ObjectAttach_Set(), spiderbot_frame(), target_kill_use(), tka_TouchEvent(), turret_damage(), turret_die(), turret_initialize(), turret_projectile_explode(), vehicle_initialize(), vehicles_enter(), vehicles_projectile_damage(), W_Crylink_Touch(), W_Crylink_Touch_WouldHitFriendly(), W_Devastator_DoRemoteExplode(), W_Devastator_Explode(), W_Electro_Bolt_Think(), W_Electro_Explode(), W_Electro_Orb_Damage(), W_Electro_TriggerCombo(), W_Fireball_Explode(), W_MineLayer_DoRemoteExplode(), W_MineLayer_Explode(), W_Mortar_Grenade_Explode(), W_Mortar_Grenade_Explode2(), W_OverkillRocketPropelledChainsaw_Explode(), W_PrepareExplosionByDamage(), W_RocketMinsta_Laser_Explode(), and W_Shotgun_Melee_Think().
| const int DAMAGE_YES = 1 |
Definition at line 80 of file subs.qh.
Referenced by button_reset(), button_return(), ctf_Handle_Drop(), door_generic_plat_blocked(), door_go_down(), door_init_shared(), door_rotating_go_down(), fd_secret_done(), ka_DropEvent(), ka_SpawnBalls(), kh_Key_Detach(), kh_Key_Spawn(), LaunchDebris(), M_Golem_Attack_Lightning(), multi_reset(), multi_wait(), Portal_MakeOutPortal(), Portal_MakeWaitingPortal(), secret_reset(), spawnfunc(), spawnfunc(), spawnfunc(), StartItem(), tka_DropEvent(), tka_SpawnBalls(), turret_projectile(), W_Arc_Attack_Bolt(), W_Devastator_Attack(), W_Electro_Attack_Orb(), W_Fireball_Attack1(), W_Hagar_Attack(), W_Hagar_Attack2(), W_Hagar_Attack2_Load_Release(), W_Hook_Attack2(), W_MineLayer_Attack(), W_Mortar_Attack(), W_Mortar_Attack2(), W_OverkillRocketPropelledChainsaw_Attack(), W_Seeker_Fire_Missile(), W_Seeker_Fire_Tag(), and walker_fire_rocket().
| vector dest1 |
Definition at line 66 of file subs.qh.
Referenced by fd_secret_move4(), and fd_secret_use().
| vector dest2 |
Definition at line 66 of file subs.qh.
Referenced by fd_secret_move2(), and fd_secret_use().
| vector destvec |
Definition at line 35 of file subs.qh.
Referenced by func_vectormamamam_findtarget(), spawnfunc(), spawnfunc(), and SUB_CalcMove_controller_think().
| vector destvec2 |
Definition at line 36 of file subs.qh.
Referenced by SUB_CalcMove_controller_think().
| vector finalangle |
Definition at line 30 of file subs.qh.
Referenced by SUB_CalcAngleMove(), and SUB_CalcAngleMoveDone().
| vector finaldest |
Definition at line 30 of file subs.qh.
Referenced by SUB_CalcMove(), SUB_CalcMove_Bezier(), SUB_CalcMove_controller_think(), and SUB_CalcMoveDone().
| float itemkeys |
Definition at line 61 of file subs.qh.
Referenced by door_damage(), door_init_keys(), item_key_touch(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), trigger_keylock_send(), and trigger_keylock_touch().
| string killtarget |
Definition at line 48 of file subs.qh.
Referenced by follow_init(), SUB_UseTargets_Ex(), target_spawn_useon(), trigger_common_write(), trigger_keylock_touch(), and WarpZone_InitStep_FindOriginTarget().
| float lip |
Definition at line 40 of file subs.qh.
Referenced by bumble_raygun_draw(), CheatImpulse(), CheatsAllowed(), classfield(), ClientKill_Silent(), ClientKill_TeamChange(), CopyBody(), door_init_shared(), door_rotating_hit_bottom(), door_send(), g_clientmodel_genericsendentity(), NET_HANDLE(), plat_send(), racer_rocket_groundhugger(), racer_rocket_tracker(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), train_send(), turret_think(), and turret_track().
| string lodmodel1 |
Definition at line 125 of file subs.qh.
Referenced by LODmodel_attach().
| string lodmodel2 |
Definition at line 126 of file subs.qh.
Referenced by LODmodel_attach().
| string lodtarget1 |
Definition at line 123 of file subs.qh.
Referenced by LODmodel_attach().
| string lodtarget2 |
Definition at line 124 of file subs.qh.
Referenced by LODmodel_attach().
| vector mangle |
Definition at line 51 of file subs.qh.
Referenced by fd_secret_use(), laser_SendEntity(), misc_laser_aim(), misc_laser_think(), plat_send(), Portal_Think(), Portal_Touch(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), target_push_init(), target_teleporter_checktarget(), teleport_dest_send(), and train_send().
| entity move_controller |
Definition at line 68 of file subs.qh.
Referenced by door_blocked(), SUB_CalcMove_Bezier(), and SUB_CalcMovePause().
| string noise |
Definition at line 83 of file subs.qh.
Referenced by basketball_touch(), button_fire(), door_init_shared(), football_touch(), func_breakable_destroy(), func_breakable_setup(), func_rotating_init_for_player(), func_rotating_setactive(), func_vectormamamam_init_for_player(), func_vectormamamam_setactive(), GoalTouch(), item_key_touch(), jumppad_push(), multi_trigger(), plat_go_down(), plat_go_up(), pointparticles_SendEntity(), secret_touch(), spawn_item_key(), SpawnBall(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), SpawnGoal(), SUB_UseTargets_Ex(), target_music_sendto(), target_speaker_use_activator(), target_speaker_use_on(), target_teleporter_checktarget(), train_next(), train_wait(), trigger_gravity_touch(), trigger_heal_init(), trigger_heal_touch(), trigger_keylock_touch(), and trigger_music_SendEntity().
| string noise1 |
Definition at line 83 of file subs.qh.
Referenced by door_hit_bottom(), door_hit_top(), door_init_shared(), door_rotating_hit_bottom(), door_rotating_hit_top(), fd_secret_use(), func_breakable_behave_destroyed(), func_breakable_behave_restore(), func_breakable_init_for_player(), func_breakable_setup(), InitBall(), plat_hit_bottom(), plat_hit_top(), SpawnBall(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), and trigger_keylock_touch().
| string noise2 |
Definition at line 83 of file subs.qh.
Referenced by door_go_down(), door_go_up(), door_init_shared(), door_rotating_go_down(), door_rotating_go_up(), fd_secret_move2(), fd_secret_move4(), fd_secret_move6(), fd_secret_use(), SpawnBall(), spawnfunc(), spawnfunc(), and trigger_keylock_touch().
| string noise3 |
Definition at line 83 of file subs.qh.
Referenced by door_init_shared(), fd_secret_done(), fd_secret_move1(), fd_secret_move3(), fd_secret_move5(), and spawnfunc().
| string platmovetype |
Definition at line 43 of file subs.qh.
Referenced by corner_send(), spawnfunc(), spawnfunc(), SUB_CalcMove_Bezier(), and train_send().
| float platmovetype_end |
Definition at line 44 of file subs.qh.
Referenced by plat_send(), spawnfunc(), SUB_CalcMove(), SUB_CalcMove_Bezier(), SUB_CalcMove_controller_think(), and train_next().
| float platmovetype_start |
Definition at line 44 of file subs.qh.
Referenced by plat_send(), spawnfunc(), SUB_CalcMove(), SUB_CalcMove_Bezier(), SUB_CalcMove_controller_think(), and train_next().
| vector pos1 |
Definition at line 50 of file subs.qh.
Referenced by a_think(), button_reset(), button_return(), door_go_down(), door_init_startopen(), door_reset(), door_rotating_go_down(), door_rotating_init_startopen(), door_rotating_reset(), door_send(), func_rotating_setactive(), Monster_Dead_Fade(), Monster_Move_Target(), Monster_Reset(), Monster_Spawn(), plat_go_up(), plat_reset(), plat_send(), racer_blowup(), raptor_blowup(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spiderbot_rocket_unguided(), StartItem(), train_send(), vehicle_initialize(), vehicles_spawn(), and void().
| vector pos2 |
Definition at line 50 of file subs.qh.
Referenced by button_fire(), door_go_up(), door_init_startopen(), door_rotating_go_up(), door_rotating_hit_bottom(), door_rotating_init_startopen(), door_send(), plat_go_down(), plat_reset(), plat_send(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), train_send(), vehicle_initialize(), vehicles_spawn(), and void().
| float sounds |
Definition at line 42 of file subs.qh.
Referenced by door_init_shared(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), and spawnfunc().
| float t_length |
Definition at line 33 of file subs.qh.
Referenced by AnimateDomPoint(), dom_controlpoint_setup(), and fd_secret_use().
| float t_width |
Definition at line 33 of file subs.qh.
Referenced by AnimateDomPoint(), dom_controlpoint_setup(), and fd_secret_use().
| float takedamage |
Definition at line 78 of file subs.qh.
Referenced by button_fire(), button_reset(), button_return(), CopyBody(), door_go_down(), door_init_shared(), door_rotating_go_down(), fd_secret_done(), func_breakable_behave_destroyed(), func_breakable_behave_restore(), func_breakable_damage(), func_breakable_setup(), ka_TouchEvent(), M_Golem_Attack_Lightning_Explode(), Monster_Dead(), Monster_Dead_Fade(), Monster_Spawn(), multi_eventdamage(), multi_reset(), multi_trigger(), multi_wait(), nade_boom(), nade_damage(), ons_GeneratorDamage(), ons_GeneratorReset(), PlayerCorpseDamage(), PutObserverInServer(), PutPlayerInServer(), respawn(), secret_reset(), spawnfunc(), spawnfunc(), spawnfunc(), StartItem(), tka_TouchEvent(), turret_damage(), turret_die(), turret_initialize(), turret_projectile_explode(), turret_respawn(), vehicle_initialize(), vehicles_projectile_damage(), vehicles_spawn(), W_Devastator_DoRemoteExplode(), W_Devastator_Explode(), W_Electro_Explode(), W_Electro_Orb_Damage(), W_Electro_Orb_Stick(), W_Fireball_Explode(), W_MineLayer_DoRemoteExplode(), W_MineLayer_Explode(), W_MineLayer_Stick(), W_Mortar_Grenade_Explode(), W_Mortar_Grenade_Explode2(), W_OverkillRocketPropelledChainsaw_Explode(), W_PrepareExplosionByDamage(), and W_RocketMinsta_Laser_Explode().
| string target3 |
Definition at line 54 of file subs.qh.
Referenced by corner_send(), func_vectormamamam_findtarget(), SUB_UseTargets_Ex(), target_spawn_useon(), and trigger_common_write().
| string target4 |
Definition at line 55 of file subs.qh.
Referenced by corner_send(), func_vectormamamam_findtarget(), SUB_UseTargets_Ex(), target_spawn_useon(), and trigger_common_write().
| float target_random |
Definition at line 57 of file subs.qh.
Referenced by corner_send(), func_train_find(), SUB_UseTargets_Ex(), train_next(), and train_next_find().
| const int TSPEED_END = 2 |
Definition at line 73 of file subs.qh.
Referenced by SUB_CalcAngleMove(), SUB_CalcMove(), and SUB_CalcMove_Bezier().
| const int TSPEED_LINEAR = 0 |
Definition at line 71 of file subs.qh.
Referenced by button_fire(), button_return(), door_go_down(), door_go_up(), door_rotating_go_down(), door_rotating_go_up(), fd_secret_move2(), fd_secret_move4(), fd_secret_move6(), fd_secret_use(), plat_go_down(), plat_go_up(), SUB_CalcAngleMove(), SUB_CalcMove(), SUB_CalcMove_Bezier(), and train_next().
| const int TSPEED_START = 1 |
Definition at line 72 of file subs.qh.
Referenced by SUB_CalcAngleMove(), SUB_CalcMove(), and SUB_CalcMove_Bezier().
| const int TSPEED_TIME = -1 |
Definition at line 70 of file subs.qh.
Referenced by SUB_CalcAngleMove(), SUB_CalcMove(), SUB_CalcMove_Bezier(), and train_wait().