|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Macros | |
| #define | ClipVelocity(in, normal, out, overbounce) |
| #define | cross(a, b) |
| #define | dotproduct(a, b) |
| #define | PFLOAT (1/1024) |
| #define | PITCH(v) |
| #define | pointinsidebox(point, bmins, bmaxs) |
| #define | ROLL(v) |
| #define | RPFLOAT(a) |
| #define | vdist(v, cmp, f) |
| Vector distance comparison, avoids sqrt() | |
| #define | vec2(...) |
| #define | vec2_1(v) |
| #define | vec2_2(x, y) |
| #define | vec3(_x, _y, _z) |
| #define | VEC_NAN vec3(FLOAT_NAN, FLOAT_NAN, FLOAT_NAN); |
| #define | vlen2(v) |
| #define | vmul(a, b) |
| #define | YAW(v) |
| #define | yinvert(v) |
Variables | |
| noref vector | _vec2 |
| noref vector | _vec3 |
| noref vector | _vlen2 |
| noref vector | _vmul_a |
| noref vector | _vmul_b |
| noref vector | _yinvert |
| const vector | eX = '1 0 0' |
| const vector | eY = '0 1 0' |
| const vector | eZ = '0 0 1' |
| #define ClipVelocity | ( | in, | |
| normal, | |||
| out, | |||
| overbounce ) |
Definition at line 156 of file vector.qh.
Referenced by sys_phys_simulate_simple().
| #define cross | ( | a, | |
| b ) |
Definition at line 25 of file vector.qh.
Referenced by _Movetype_FlyMove(), Draw_ArcBeam_callback(), Draw_CylindricLine(), W_CalculateSpread(), and WarpZone_InitStep_UpdateTransform().
| #define PITCH | ( | v | ) |
| #define pointinsidebox | ( | point, | |
| bmins, | |||
| bmaxs ) |
Definition at line 79 of file vector.qh.
Referenced by HUD_Crosshair().
| #define ROLL | ( | v | ) |
| #define RPFLOAT | ( | a | ) |
| #define vdist | ( | v, | |
| cmp, | |||
| f ) |
Vector distance comparison, avoids sqrt()
Definition at line 8 of file vector.qh.
Referenced by _Movetype_Physics_Walk(), animdecide_setimplicitstate(), bot_aimdir(), botframe_showwaypointlinks(), buildpath_nodefilter_directional(), bumblebee_exit(), Casing_Touch(), CreatureFrame_FallDamage(), CSQC_Demo_Camera(), CSQCPlayer_SetPredictionError(), ctf_FlagThink(), Drag(), Drag_Finish(), Draw_ArcBeam(), Draw_GrapplingHook(), Draw_ShowNames(), fireBullet_falloff(), fireBullet_trace_callback(), GENERIC_COMMAND(), havocbot_ai(), havocbot_bunnyhop(), havocbot_chooseenemy(), havocbot_ctf_teamcount(), havocbot_goalrating_controlpoints(), havocbot_goalrating_ctf_droppedflags(), havocbot_goalrating_enemyplayers(), havocbot_goalrating_ft_freeplayers(), havocbot_goalrating_items(), havocbot_goalrating_ons_controlpoints_attack(), havocbot_goalrating_ons_generator_attack(), havocbot_goalrating_waypoints(), havocbot_movetogoal(), havocbot_role_ctf_carrier(), havocbot_role_ctf_defense(), havocbot_role_ctf_escort(), havocbot_role_ctf_middle(), havocbot_role_ctf_offense(), havocbot_role_ctf_retriever(), havocbot_role_cts(), havocbot_role_race(), HUD_Crosshair(), InterpolateOrigin_Note(), ItemDraw(), kh_Key_Think(), LOD_customize(), M_Golem_Attack(), M_Mage_Attack_Spike_Think(), M_Mage_Attack_Teleport(), M_Spider_Attack(), m_tooltip(), Monster_Attack_Check(), Monster_Enemy_Check(), Monster_Move(), Monster_Move_2D(), Monster_Move_Target(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), navigation_get_really_close_waypoint(), navigation_goalrating_timeout_can_be_anticipated(), navigation_poptouchedgoals(), navigation_routerating(), navigation_routetogoal(), navigation_shortenpath(), navigation_waypoint_will_link(), NET_HANDLE(), NET_HANDLE(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Icon_Think(), ons_Nearest_ControlPoint(), pathlib_close_node(), pathlib_nodeatpoint(), PM_dodging_checkpressedkeys(), PM_Footsteps(), pong_paddle_hit(), race_SpeedAwardFrame(), racer_exit(), racer_rocket_tracker(), raptor_bomb_burst(), raptor_exit(), ResetBall(), sandbox_ObjectEdit_Get(), Spawn_Draw(), spiderbot_exit(), spiderbot_rocket_unguided(), steerlib_wander(), trigger_magicear_processmessage(), trigger_push_test(), trigger_push_testorigin(), TrueAimCheck(), turret_flac_projectile_think_explode(), turret_fusionreactor_firecheck(), turret_hellion_missile_think(), turret_hk_missile_think(), turret_initialize(), turret_targetscore_generic(), turret_validate_target(), vehicles_impact(), vehicles_touch(), View_Ortho(), W_Devastator_DoRemoteExplode(), W_Devastator_RemoteExplode(), W_Electro_TriggerCombo(), W_Fireball_Firemine_Think(), W_Porto_Fail(), W_Seeker_Missile_Think(), W_SetupShot_Dir_ProjectileSize_Range(), walker_rocket_loop2(), walker_rocket_loop3(), WarpZone_Camera_camera_transform(), WarpZone_camera_transform(), WarpZone_InitStep_UpdateTransform(), waypoint_load_hardwiredlinks(), waypoint_load_links(), waypoint_schedulerelink(), waypoint_spawn_fromeditor(), waypoint_spawnforitem_force(), and waypoint_think().
| #define vec2 | ( | ... | ) |
Definition at line 90 of file vector.qh.
Referenced by bobmodel_ofs(), botframe_showwaypointlinks(), box_nearest(), CursorToWorldCoord(), determine_force(), draw_cursor(), Draw_ShowNames(), DrawAmmoNades(), DrawCAItem(), DrawDomItem(), DrawItemsTimeItem(), havocbot_bunnyhop(), havocbot_checkgoaldistance(), havocbot_goalrating_enemyplayers(), havocbot_movetogoal(), HUD_Ammo(), HUD_CenterPrint(), HUD_Configure_DrawGrid(), HUD_Contents(), HUD_Damage(), HUD_DarkBlinking(), HUD_Draw(), HUD_GetTableSize_BestItemAR(), HUD_HealthArmor(), HUD_ItemsTime(), HUD_Mod_CA_Draw(), HUD_Mod_Dom(), HUD_Mod_Keepaway(), HUD_Mod_KH(), HUD_Mod_LMS_Draw(), HUD_Mod_Race(), HUD_Mod_Survival(), HUD_Mod_TeamKeepaway(), HUD_Notify(), HUD_Panel_HlBorder(), HUD_Panel_HlCenterLine(), HUD_Physics(), HUD_Pickup(), HUD_Powerups(), HUD_PressedKeys(), HUD_QuickMenu(), HUD_Quickmenu_DrawEntry(), HUD_RaceTimer(), HUD_Radar(), HUD_Score(), HUD_Score_Rankings(), HUD_StrafeHUD(), HUD_Timer(), HUD_Vote(), MapVote_Draw(), minigame_tile_pos(), monster_facing(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), navigation_checkladders(), navigation_poptouchedgoals(), navigation_routetogoal(), ons_camSetup(), orb_draw2d(), PM_Accelerate(), pong_server_event(), pong_team_to_box_halfsize(), PutObserverInServer(), QuickMenu_Mouse(), race_SendTime(), RaceCarPhysics(), Rotate(), Scoreboard_AccuracyStats_Draw(), Scoreboard_Draw(), Scoreboard_DrawItem(), Scoreboard_DrawOthers(), Scoreboard_ItemStats_Draw(), Scoreboard_MakeTable(), Scoreboard_Rankings_Draw(), set_tracewalk_dest(), sys_phys_simulate(), tracewalk(), trigger_push_test(), trigger_push_testorigin(), trigger_push_velocity_calculatevelocity(), waypoint_getSymmetricalOrigin_cmd(), waypoint_gettravelcost(), Weapons_Draw(), and XonoticTextBox_drawListBoxItem().
| #define vec2_1 | ( | v | ) |
| #define vec2_2 | ( | x, | |
| y ) |
| #define vec3 | ( | _x, | |
| _y, | |||
| _z ) |
Definition at line 95 of file vector.qh.
Referenced by _Movetype_FlyMove(), animdecide_getloweranim(), animdecide_getupperanim(), ctf_Handle_Throw(), CursorToWorldCoord(), Damage_DamageInfo_SendEntity(), Draw_ArcBeam(), findperpendicular(), get_corner_position(), HUD_Crosshair(), HUD_Draw(), ka_BallThink_Carried(), MUTATOR_HOOKFUNCTION(), NearestPointOnBoundingBox(), NearestPointOnBox(), PlayerEdgeDistance(), solve_cubic_pq(), sys_phys_simulate(), tka_BallThink_Carried(), View_Ortho(), W_Tuba_NoteOff(), and XonoticCampaignList_resizeNotify().
| #define vlen2 | ( | v | ) |
Definition at line 4 of file vector.qh.
Referenced by _Movetype_PushMove(), _Movetype_TestEntityPosition(), bumblebee_gunner_enter(), CheatCommand(), DamageEffect(), Draw_ShowNames(), havocbot_chooseenemy(), havocbot_goalrating_ft_freeplayers(), havocbot_goalrating_item_pickable_check_players(), havocbot_movetogoal(), havocbot_role_ctf_offense(), M_Mage_Attack_Spike_Think(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), navigation_poptouchedgoals(), navigation_routetogoal(), navigation_shortenpath(), navigation_unstuck(), ons_Nearest_ControlPoint(), PlayerUseKey(), sys_phys_simulate(), turret_hk_missile_think(), W_CalculateSpread(), W_Crylink_LinkJoinEffect_Think(), and WarpZone_FindRadius_Recurse().
| #define vmul | ( | a, | |
| b ) |
| #define YAW | ( | v | ) |
| #define yinvert | ( | v | ) |
requires that m2>m1 in all coordinates, and that m4>m3
Definition at line 73 of file vector.qh.
References vector.
Referenced by _Movetype_LinkEdict_TouchAreaGrid(), _Movetype_Physics_Toss(), botframe_autowaypoints_createwp(), Draw_ShowNames(), findbox_tofield_Fallback(), havocbot_movetogoal(), HUD_Notify(), MUTATOR_HOOKFUNCTION(), navigation_checkladders(), navigation_findnearestwaypoint_withdist_except(), navigation_poptouchedgoals(), orb_draw2d(), pong_paddle_hit(), sys_phys_simulate_simple(), trigger_push_test(), turret_closetotarget(), WarpZoneLib_ExactTrigger_Touch(), waypoint_addlink_for_custom_jumppad(), waypoint_get(), waypoint_get_type_name(), waypoint_spawn(), waypoint_spawn_fromeditor(), waypoint_spawnforitem_force(), and waypoint_think().
Definition at line 178 of file vector.qh.
References bound(), entity(), org, vec3, and vector.
Referenced by CSQCModel_LOD_Apply(), LOD_customize(), NET_HANDLE(), and W_Devastator_RemoteExplode().
| [in] | p | point |
| [in] | l0 | starting point of ldir |
| [in] | ldir | line |
Definition at line 119 of file vector.qh.
References normalize(), and vector.
Referenced by havocbot_movetogoal().
Definition at line 49 of file vector.qh.
References random(), and vector.
Referenced by generator_draw(), and ons_ControlPoint_Icon_Think().
| dir | the directional vector |
| norm | the normalized normal |
Definition at line 133 of file vector.qh.
Referenced by Porto_Draw().
Definition at line 105 of file vector.qh.
References cos(), sin(), vec2, and vector.
Referenced by drawhealthbar(), drawrotpic(), drawspritearrow(), HUD_Radar(), teamradar_2dcoord_to_texcoord(), teamradar_texcoord_to_2dcoord(), and waypoint_getSymmetricalPoint().
Definition at line 206 of file vector.qh.
References RPFLOAT, and vector.
Referenced by ApplyMinMaxScaleAngles(), Monster_Spawn(), and sandbox_ObjectEdit_Scale().
| const vector eX = '1 0 0' |
Definition at line 44 of file vector.qh.
Referenced by BorderImage_recalcPositionWithText(), Button_draw(), checkColorCode(), Checkpoints_drawstring(), crosshairpicker_crosshairToCell(), DemoConfirm_ListClick_Check_Gamestatus(), Dialog_addItemSimple(), Dialog_configureDialog(), Draw_ArcBeam(), draw_BorderPicture(), draw_ButtonPicture(), draw_CenterText(), draw_Picture_Aligned(), draw_setMousePointer(), Draw_ShowNames(), draw_VertButtonPicture(), DrawAmmoItem(), DrawAmmoNades(), DrawCAItem(), DrawDomItem(), DrawItemsTimeItem(), XonoticRegisteredSettingsList::drawListBoxItem(), DrawNadeProgressBar(), DrawNumIcon_expanding(), drawspritearrow(), GameTypeVote_DrawGameTypeItem(), hslimage_color(), HUD_CenterPrint(), HUD_Configure_DrawGrid(), HUD_GetTableSize_BestItemAR(), HUD_HealthArmor(), HUD_Main(), HUD_MinigameMenu(), HUD_MinigameMenu_MouseInput(), HUD_Mod_CTF(), HUD_Mod_Keepaway(), HUD_Mod_KH(), HUD_Mod_LMS_Draw(), HUD_Mod_NexBall(), HUD_Mod_TeamKeepaway(), HUD_Notify(), HUD_Panel_DrawHighlight(), HUD_Panel_DrawProgressBar(), HUD_Panel_Highlight(), HUD_Panel_HlBorder(), HUD_Physics(), HUD_PressedKeys(), HUD_Quickmenu_DrawEntry(), HUD_RaceTimer(), HUD_Score(), HUD_Score_Rankings(), HUD_Timer(), Image_updateAspect(), InfoMessages_drawstring(), InputBox_draw(), ListBox_draw(), ListBox_drawListBoxItem(), ListBox_mouseRelease(), m_draw(), m_init_delayed(), MainWindow_configureMainWindow(), MainWindow_draw(), MapVote_GridVec(), MapVote_Init(), preMenuDraw(), preMenuInit(), Scoreboard_AccuracyStats_Draw(), Scoreboard_Draw(), Scoreboard_DrawHeader(), Scoreboard_DrawItem(), Scoreboard_DrawOthers(), Scoreboard_ItemStats_Draw(), Scoreboard_MapStats_Draw(), Scoreboard_Rankings_Draw(), ServerList_Info_Click(), Slider_draw(), StrafeHUD_DrawAngleIndicatorArrow(), StrafeHUD_DrawAngleIndicatorLine(), StrafeHUD_DrawDirectionIndicator(), StrafeHUD_DrawGradient(), StrafeHUD_DrawSoftGradient(), StrafeHUD_DrawStrafeArrow(), StrafeHUD_DrawStrafeHUD(), UpdateConWidthHeight(), WarpZoneLib_MoveOutOfSolid(), XonoticCampaignList_drawListBoxItem(), XonoticCampaignList_resizeNotify(), XonoticCharmap_resizeNotify(), XonoticColorpickerString_loadCvars(), XonoticCreditsList_drawListBoxItem(), XonoticCvarList_drawListBoxItem(), XonoticDemoList_drawListBoxItem(), XonoticEntryList_drawListBoxItem(), XonoticGametypeList_drawListBoxItem(), XonoticGuideDescription_drawListBoxItem(), XonoticHUDSkinList_drawListBoxItem(), XonoticKeyBinder_drawListBoxItem(), XonoticLanguageList_drawListBoxItem(), XonoticMapList_doubleClickListBoxItem(), XonoticMapList_drawListBoxItem(), XonoticMapList_keyDown(), XonoticMapList_resizeNotify(), XonoticPicker_configureXonoticPicker(), XonoticPicker_keyDown(), XonoticPlayerList_drawListBoxItem(), XonoticPlayList_drawListBoxItem(), XonoticScreenshotList_drawListBoxItem(), XonoticScreenshotList_startScreenshot(), XonoticServerList_drawListBoxItem(), XonoticServerList_keyDown(), XonoticServerList_positionSortButton(), XonoticSkinList_drawListBoxItem(), XonoticSoundList_drawListBoxItem(), XonoticStatsList_drawListBoxItem(), XonoticTextBox_drawListBoxItem(), XonoticTopicList_drawListBoxItem(), and XonoticWeaponsList_drawListBoxItem().
| const vector eY = '0 1 0' |
Definition at line 45 of file vector.qh.
Referenced by BorderImage_recalcPositionWithText(), Button_draw(), checkColorCode(), crosshairpicker_crosshairToCell(), DebugText3d::DebugText3d_draw2d(), DemoConfirm_ListClick_Check_Gamestatus(), Dialog_addItemSimple(), Dialog_configureDialog(), Draw_ArcBeam(), draw_BorderPicture(), draw_ButtonPicture(), draw_Picture_Aligned(), draw_setMousePointer(), Draw_ShowNames(), draw_VertButtonPicture(), DrawAmmoItem(), XonoticRegisteredSettingsList::drawListBoxItem(), DrawNumIcon_expanding(), drawspritearrow(), GameTypeVote_DrawGameTypeItem(), hslimage_color(), HUD_CenterPrint(), HUD_Configure_DrawGrid(), HUD_Draw(), HUD_GetTableSize_BestItemAR(), HUD_HealthArmor(), HUD_Main(), HUD_MinigameMenu(), HUD_MinigameMenu_MouseInput(), HUD_Mod_CTF(), HUD_Mod_Keepaway(), HUD_Mod_KH(), HUD_Mod_NexBall(), HUD_Mod_Race(), HUD_Mod_TeamKeepaway(), HUD_Notify(), HUD_Panel_DrawHighlight(), HUD_Panel_DrawProgressBar(), HUD_Panel_Highlight(), HUD_Panel_HlBorder(), HUD_Physics(), HUD_Pickup(), HUD_QuickMenu(), HUD_Score(), HUD_Score_Rankings(), HUD_Timer(), HUD_Vote(), Image_updateAspect(), InputBox_draw(), ListBox_draw(), ListBox_drawListBoxItem(), ListBox_mouseRelease(), m_draw(), m_init_delayed(), MainWindow_configureMainWindow(), MainWindow_draw(), MapVote_GridVec(), MapVote_Init(), preMenuDraw(), preMenuInit(), Scoreboard_AccuracyStats_Draw(), Scoreboard_Draw(), Scoreboard_DrawHeader(), Scoreboard_DrawItem(), Scoreboard_ItemStats_Draw(), Scoreboard_MakeTable(), Scoreboard_MapStats_Draw(), Scoreboard_Rankings_Draw(), ServerList_Info_Click(), Slider_draw(), StrafeHUD_DrawAngleIndicatorArrow(), StrafeHUD_DrawAngleIndicatorLine(), StrafeHUD_DrawDirectionIndicator(), StrafeHUD_DrawGradient(), StrafeHUD_DrawSlickDetector(), StrafeHUD_DrawStrafeArrow(), sys_phys_simulate(), sys_phys_update(), UpdateConWidthHeight(), WarpZoneLib_MoveOutOfSolid(), XonoticCampaignList_drawListBoxItem(), XonoticCampaignList_resizeNotify(), XonoticCharmap_resizeNotify(), XonoticColorpickerString_loadCvars(), XonoticCreditsList_drawListBoxItem(), XonoticCvarList_drawListBoxItem(), XonoticDemoList_drawListBoxItem(), XonoticEntryList_drawListBoxItem(), XonoticGametypeList_drawListBoxItem(), XonoticHUDSkinList_drawListBoxItem(), XonoticKeyBinder_drawListBoxItem(), XonoticLanguageList_drawListBoxItem(), XonoticMapList_doubleClickListBoxItem(), XonoticMapList_drawListBoxItem(), XonoticMapList_keyDown(), XonoticMapList_resizeNotify(), XonoticPicker_configureXonoticPicker(), XonoticPicker_keyDown(), XonoticPlayerList_drawListBoxItem(), XonoticPlayerModelSelector_draw(), XonoticPlayList_drawListBoxItem(), XonoticScreenshotList_drawListBoxItem(), XonoticScreenshotList_startScreenshot(), XonoticServerList_drawListBoxItem(), XonoticServerList_keyDown(), XonoticServerList_positionSortButton(), XonoticSkinList_drawListBoxItem(), XonoticSoundList_drawListBoxItem(), XonoticStatsList_drawListBoxItem(), XonoticTopicList_drawListBoxItem(), and XonoticWeaponsList_drawListBoxItem().
| const vector eZ = '0 0 1' |
Definition at line 46 of file vector.qh.
Referenced by cpicon_draw(), ctf_CalculatePassVelocity(), ctf_FlagThink(), Draw_ShowNames(), havocbot_movetogoal(), hslimage_color(), InputBox_draw(), MapVote_RGB(), navigation_poptouchedgoals(), resurface_limited(), StrafeHUD_DrawSlickDetector(), sys_phys_simulate(), tracewalk(), trigger_push_test(), trigger_push_testorigin(), trigger_push_testorigin_for_item(), TrueAimCheck(), WarpZoneLib_MoveOutOfSolid(), waypoint_unreachable(), and XonoticColorpickerString_loadCvars().