|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "waypointsprites.qh"Go to the source code of this file.
Definition at line 471 of file waypointsprites.qc.
References alpha, ang, autocvar_cl_hidewaypoints, autocvar_g_waypointsprite_iconcolor, autocvar_g_waypointsprite_iconsize, autocvar_g_waypointsprite_itemstime, autocvar_g_waypointsprite_text, autocvar_g_waypointsprite_uppercase, autocvar_hud_panel_fg_alpha, bound(), cos(), draw_beginBoldFont, draw_endBoldFont, DRAWFLAG_NORMAL, drawhealthbar(), drawsprite_TextOrIcon(), drawspritearrow(), entcs_GetTeam(), entity(), error, f1, f2, fadetime, fixrgbexcess(), floor(), GetResource(), hsv_to_rgb(), hud_skin_path, InterpolateOrigin_Do(), lifetime, LOG_INFOF, M_PI, max(), min(), netname, NUM_SPECTATOR, origin, player_localnum, precache_pic(), project_3d_to_2d(), rgb_to_hsv(), rule, SetResourceExplicit(), SPRITE_ARROW_SCALE, SPRITE_HEALTHBAR_BORDER, SPRITE_HEALTHBAR_BORDERALPHA, SPRITE_HEALTHBAR_HEALTHALPHA, SPRITE_HEALTHBAR_HEIGHT, SPRITE_HEALTHBAR_MARGIN, SPRITE_HEALTHBAR_WIDTH, SPRITE_HELPME_BLINK, spritelookupblinkvalue(), spritelookupcolor(), spritelookupicon(), spritelookuptext(), SPRITERULE_DEFAULT, SPRITERULE_SPECTATOR, SPRITERULE_TEAMPLAY, sqrt(), STAT, strcat(), string_null, team, time, vector, vid_conheight, vid_conwidth, view_origin, vlen(), warmup_stage, waypointsprite_alpha, waypointsprite_crosshairfadealpha, waypointsprite_crosshairfadedistance, waypointsprite_crosshairfadescale, waypointsprite_distancealphaexponent, waypointsprite_distancefadealpha, waypointsprite_distancefadedistance, waypointsprite_distancefadescale, waypointsprite_edgefadealpha, waypointsprite_edgefadedistance, waypointsprite_edgefadescale, waypointsprite_edgeoffset_bottom, waypointsprite_edgeoffset_left, waypointsprite_edgeoffset_right, waypointsprite_edgeoffset_top, waypointsprite_fontsize, waypointsprite_newcount, waypointsprite_normdistance, waypointsprite_scale, and waypointsprite_timealphaexponent.
Referenced by Ent_WaypointSprite().
| void drawhealthbar | ( | vector | org, |
| float | rot, | ||
| float | h, | ||
| vector | sz, | ||
| vector | hotspot, | ||
| float | width, | ||
| float | theheight, | ||
| float | margin, | ||
| float | border, | ||
| float | align, | ||
| vector | rgb, | ||
| float | a, | ||
| vector | hrgb, | ||
| float | ha, | ||
| float | f ) |
Definition at line 313 of file waypointsprites.qc.
References drawquad(), org, Rotate(), and vector.
Referenced by Draw_WaypointSprite(), and turret_draw2d().
Definition at line 303 of file waypointsprites.qc.
References vector.
Referenced by drawhealthbar().
| void drawrotpic | ( | vector | org, |
| float | rot, | ||
| string | pic, | ||
| vector | sz, | ||
| vector | hotspot, | ||
| vector | rgb, | ||
| float | a, | ||
| float | f ) |
Definition at line 275 of file waypointsprites.qc.
| vector drawsprite_TextOrIcon | ( | bool | is_text, |
| vector | o, | ||
| float | ang, | ||
| float | minwidth, | ||
| vector | rgb, | ||
| float | a, | ||
| vector | sz, | ||
| string | str ) |
Definition at line 371 of file waypointsprites.qc.
References ang, cos(), DRAWFLAG_NORMAL, drawpic, drawstring, fabs(), sin(), stringwidth, vector, vid_conheight, and vid_conwidth.
Referenced by Draw_WaypointSprite(), and turret_draw2d().
Definition at line 341 of file waypointsprites.qc.
References ang, DRAWFLAG_ADDITIVE, DRAWFLAG_NORMAL, eX, eY, M_SQRT2, Rotate(), size, and vector.
Referenced by Draw_WaypointSprite(), and turret_draw2d().
Definition at line 100 of file waypointsprites.qc.
References entity(), netname, and strfree.
Referenced by Ent_WaypointSprite().
Definition at line 107 of file waypointsprites.qc.
References BIT, BITS, bound(), Draw_WaypointSprite(), Ent_RemoveWaypointSprite(), entity(), fadetime, g_drawables_2d, g_radaricons, GetResource(), IFLAG_ORIGIN, iflags, IL_PUSH(), InterpolateOrigin_Note(), InterpolateOrigin_Undo(), lifetime, MAX_TEAMRADAR_TIMES, netname, origin, ReadByte(), ReadString, ReadVector, rule, servertime, SetResourceExplicit(), spawntime, strcpy, team, time, and wp_extra.
Referenced by NET_HANDLE().
Definition at line 438 of file waypointsprites.qc.
References fixrgbexcess_move(), and vector.
Referenced by Draw_WaypointSprite(), and turret_draw2d().
Definition at line 432 of file waypointsprites.qc.
References vector.
Referenced by fixrgbexcess().
| NET_HANDLE | ( | waypointsprites | , |
| bool | isnew ) |
Definition at line 95 of file waypointsprites.qc.
References Ent_WaypointSprite().
| REGISTER_MUTATOR | ( | waypointsprites | , |
| true | ) |
Definition at line 209 of file waypointsprites.qc.
References entity(), REGISTRY_GET, spawnflags, Weapons, WEP_FLAG_SUPERWEAPON, and wp_extra.
Referenced by Draw_WaypointSprite(), and turret_draw2d().
Definition at line 221 of file waypointsprites.qc.
References entity(), M_ARGV, MUTATOR_CALLHOOK, REGISTRY_GET, vector, Weapons, and wp_extra.
Referenced by Draw_WaypointSprite(), HUD_Radar(), and turret_draw2d().
Definition at line 253 of file waypointsprites.qc.
References entity(), FOREACH, M_ARGV, MUTATOR_CALLHOOK, REGISTRY_GET, Weapons, and wp_extra.
Referenced by Draw_WaypointSprite().
Definition at line 232 of file waypointsprites.qc.
References autocvar_g_waypointsprite_spam, entity(), FOREACH, get_monsterinfo, M_ARGV, MUTATOR_CALLHOOK, race_checkpointtime, race_mycheckpointtime, REGISTRY_GET, waypointsprite_count, Weapons, and wp_extra.
Referenced by Draw_WaypointSprite(), and turret_draw2d().
| STATIC_INIT | ( | WaypointSprite_Load | ) |
Definition at line 774 of file waypointsprites.qc.
References WaypointSprite_Load(), and WaypointSprite_Load_Frames().
Definition at line 1139 of file waypointsprites.qc.
References entity(), NULL, teamplay, waypointsprite_attached, waypointsprite_deployed_lifetime, waypointsprite_limitedrange, and WaypointSprite_Spawn().
Referenced by IMPULSE().
Definition at line 1161 of file waypointsprites.qc.
References autocvar_g_balance_armor_blockpercent, entity(), GetResource(), healtharmor_maxdamage(), NULL, RES_ARMOR, start_armorvalue, start_health, waypointsprite_attachedforcarrier, WaypointSprite_Kill(), WaypointSprite_Spawn(), WaypointSprite_UpdateHealth(), and WaypointSprite_UpdateMaxHealth().
Referenced by GiveBall(), ka_TouchEvent(), kh_Key_AssignTo(), MUTATOR_HOOKFUNCTION(), SpawnBall(), and tka_TouchEvent().
Definition at line 1187 of file waypointsprites.qc.
References entity(), waypointsprite_attached, waypointsprite_deployed_fixed, waypointsprite_deployed_personal, and WaypointSprite_Kill().
Referenced by IMPULSE().
Definition at line 1182 of file waypointsprites.qc.
References entity(), waypointsprite_deployed_personal, and WaypointSprite_Kill().
Referenced by IMPULSE().
Definition at line 1027 of file waypointsprites.qc.
References entity(), MUTATOR_CALLHOOK, and WaypointSprite_getviewentity().
Referenced by WaypointSprite_Spawn().
| entity WaypointSprite_DeployFixed | ( | entity | spr, |
| bool | limited_range, | ||
| entity | player, | ||
| vector | ofs, | ||
| entity | icon ) |
Definition at line 1108 of file waypointsprites.qc.
References entity(), NULL, teamplay, vector, waypointsprite_deployed_fixed, waypointsprite_deployed_lifetime, waypointsprite_limitedrange, and WaypointSprite_Spawn().
Referenced by IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), and IMPULSE().
Definition at line 1129 of file waypointsprites.qc.
References entity(), NULL, vector, waypointsprite_deployed_personal, and WaypointSprite_Spawn().
Definition at line 1177 of file waypointsprites.qc.
References entity(), waypointsprite_deadlifetime, and WaypointSprite_Disown().
Referenced by ka_RemoveBalls(), kh_Key_AssignTo(), kh_Key_Remove(), tka_RemoveBalls(), WaypointSprite_PlayerDead(), and WaypointSprite_PlayerGone().
Definition at line 948 of file waypointsprites.qc.
References backtrace, entity(), fadetime, NULL, and WaypointSprite_FadeOutIn().
Referenced by assault_objective_decrease_use(), target_objective_decrease_activate(), WaypointSprite_DetachCarrier(), WaypointSprite_PlayerDead(), and WaypointSprite_PlayerGone().
Definition at line 911 of file waypointsprites.qc.
References entity(), and time.
Referenced by WaypointSprite_Disown().
Definition at line 1010 of file waypointsprites.qc.
References entity(), and IS_SPEC.
Referenced by AuxiliaryXhair_customize(), buff_Customize(), buffs_BuffModel_Customize(), ctf_FlagBase_Customize(), ctf_Stalemate_Customize(), ka_waypointsprite_visible_for_bot(), kh_waypointsprite_visible_for_bot(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), nb_Goal_Customize(), ons_CaptureShield_Customize(), tka_waypointsprite_visible_for_bot(), WaypointSprite_Customize(), WaypointSprite_SendEntity(), and wepent_customize().
Definition at line 904 of file waypointsprites.qc.
References entity(), time, waypointsprite_deployed_lifetime, and WaypointSprite_Ping().
Referenced by if(), IMPULSE(), and MUTATOR_HOOKFUNCTION().
| void WaypointSprite_Init | ( | ) |
Definition at line 934 of file waypointsprites.qc.
References autocvar_sv_waypointsprite_deadlifetime, autocvar_sv_waypointsprite_deployed_lifetime, autocvar_sv_waypointsprite_limitedrange, waypointsprite_deadlifetime, waypointsprite_deployed_lifetime, and waypointsprite_limitedrange.
Referenced by spawnfunc().
Definition at line 1020 of file waypointsprites.qc.
References entity(), and teamplay.
Referenced by WaypointSprite_SendEntity().
Definition at line 941 of file waypointsprites.qc.
References entity(), and NULL.
Referenced by buff_Delete(), buff_Think(), buff_Waypoint_Reset(), ctf_Handle_Capture(), ctf_Handle_Pickup(), ctf_Handle_Return(), ctf_Handle_Throw(), ctf_RespawnFlag(), DropBall(), freezetag_Unfreeze(), GiveBall(), Item_Reset(), Item_RespawnCountdown(), ka_PlayerReset(), ka_TouchEvent(), kh_Key_Remove(), Monster_Damage(), Monster_Remove(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), powerups_DropItem_Think(), RemoveItem(), tka_PlayerReset(), tka_TouchEvent(), vehicles_exit(), vehicles_return(), vehicles_showwp_goaway(), W_Seeker_Tag_Touch(), W_Seeker_Tracker_Think(), WaypointSprite_AttachCarrier(), WaypointSprite_ClearOwned(), WaypointSprite_ClearPersonal(), WaypointSprite_PlayerGone(), WaypointSprite_Reset(), and WaypointSprite_Think().
| void WaypointSprite_Load | ( | ) |
Definition at line 779 of file waypointsprites.qc.
References autocvar__menu_alpha, autocvar_g_waypointsprite_alpha, autocvar_g_waypointsprite_crosshairfadealpha, autocvar_g_waypointsprite_crosshairfadedistance, autocvar_g_waypointsprite_crosshairfadescale, autocvar_g_waypointsprite_distancealphaexponent, autocvar_g_waypointsprite_distancefadealpha, autocvar_g_waypointsprite_distancefadedistancemultiplier, autocvar_g_waypointsprite_distancefadescale, autocvar_g_waypointsprite_edgefadealpha, autocvar_g_waypointsprite_edgefadedistance, autocvar_g_waypointsprite_edgefadescale, autocvar_g_waypointsprite_edgeoffset_bottom, autocvar_g_waypointsprite_edgeoffset_left, autocvar_g_waypointsprite_edgeoffset_right, autocvar_g_waypointsprite_edgeoffset_top, autocvar_g_waypointsprite_fontsize, autocvar_g_waypointsprite_minalpha, autocvar_g_waypointsprite_minscale, autocvar_g_waypointsprite_normdistance, autocvar_g_waypointsprite_scale, autocvar_g_waypointsprite_timealphaexponent, mi_scale, vlen(), waypointsprite_alpha, waypointsprite_count, waypointsprite_crosshairfadealpha, waypointsprite_crosshairfadedistance, waypointsprite_crosshairfadescale, waypointsprite_distancealphaexponent, waypointsprite_distancefadealpha, waypointsprite_distancefadedistance, waypointsprite_distancefadescale, waypointsprite_edgefadealpha, waypointsprite_edgefadedistance, waypointsprite_edgefadescale, waypointsprite_edgeoffset_bottom, waypointsprite_edgeoffset_left, waypointsprite_edgeoffset_right, waypointsprite_edgeoffset_top, waypointsprite_fadedistance, waypointsprite_fontsize, waypointsprite_minalpha, waypointsprite_minscale, waypointsprite_newcount, waypointsprite_normdistance, waypointsprite_scale, and waypointsprite_timealphaexponent.
Referenced by CSQC_UpdateView(), and STATIC_INIT().
Definition at line 753 of file waypointsprites.qc.
References db_get(), db_put(), ftos(), max(), search_begin(), search_end(), search_getfilename(), search_getsize(), stof(), strcat(), strlen, strstrofs, substring(), and tempdb.
Referenced by STATIC_INIT().
Definition at line 894 of file waypointsprites.qc.
References BIT, entity(), and time.
Referenced by buff_Respawn(), ctf_Handle_Pickup(), ctf_Handle_Throw(), dompoint_captured(), dompointtouch(), func_breakable_damage(), GoalTouch(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), InitBall(), Item_RespawnCountdown(), ka_DropEvent(), ka_RespawnBall(), ka_TouchEvent(), kh_Key_AssignTo(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), ons_ControlPoint_UpdateSprite(), ons_Generator_UpdateSprite(), ons_GeneratorDamage(), tka_DropEvent(), tka_RespawnBall(), tka_TouchEvent(), vehicles_showwp(), and WaypointSprite_HelpMePing().
Definition at line 1194 of file waypointsprites.qc.
References entity(), waypointsprite_attached, waypointsprite_deadlifetime, WaypointSprite_DetachCarrier(), and WaypointSprite_Disown().
Referenced by PlayerDamage(), and PutObserverInServer().
Definition at line 1200 of file waypointsprites.qc.
References entity(), waypointsprite_attached, waypointsprite_deadlifetime, waypointsprite_deployed_fixed, waypointsprite_deployed_personal, WaypointSprite_DetachCarrier(), WaypointSprite_Disown(), and WaypointSprite_Kill().
Referenced by ClientDisconnect().
Definition at line 1042 of file waypointsprites.qc.
References entity(), fade_time, and WaypointSprite_Kill().
Referenced by WaypointSprite_Spawn().
Definition at line 9 of file waypointsprites.qc.
References bound(), cnt, colormod, currentammo, entity(), exteriormodeltoclient, fade_rate, fade_time, GetResource(), M_ARGV, max_health, model1, model2, model3, MSG_ENTITY, MUTATOR_CALLHOOK, origin, owner, pain_finished, rule, team, teleport_time, time, WaypointSprite_getviewentity(), waypointsprite_helpmetime, WaypointSprite_isteammate(), wp_extra, WriteByte(), WriteCoord(), WriteHeader, WriteShort(), and WriteString().
Referenced by WaypointSprite_Spawn().
| entity WaypointSprite_Spawn | ( | entity | spr, |
| float | _lifetime, | ||
| float | maxdistance, | ||
| entity | ref, | ||
| vector | ofs, | ||
| entity | showto, | ||
| float | t, | ||
| entity | own, | ||
| .entity | ownfield, | ||
| float | hideable, | ||
| entity | icon ) |
Definition at line 1050 of file waypointsprites.qc.
References entity(), Net_LinkEntity(), setcefc, setthink, time, vector, WaypointSprite_Customize(), WaypointSprite_Reset(), WaypointSprite_SendEntity(), WaypointSprite_Think(), and WaypointSprite_visible_for_player().
Referenced by buff_Waypoint_Spawn(), ctf_CheckStalemate(), ctf_FlagcarrierWaypoints(), ctf_Handle_Drop(), DropBall(), freezetag_Freeze(), Item_RespawnCountdown(), ka_DropEvent(), ka_RespawnBall(), kh_Key_Spawn(), Monster_Spawn_Setup(), MUTATOR_HOOKFUNCTION(), powerups_DropItem(), tka_DropEvent(), tka_RespawnBall(), vehicles_enter(), vehicles_showwp(), W_Seeker_Tag_Touch(), WaypointSprite_Attach(), WaypointSprite_AttachCarrier(), WaypointSprite_DeployFixed(), WaypointSprite_DeployPersonal(), WaypointSprite_SpawnFixed(), and Weapon_whereis().
| entity WaypointSprite_SpawnFixed | ( | entity | spr, |
| vector | ofs, | ||
| entity | own, | ||
| .entity | ownfield, | ||
| entity | icon ) |
Definition at line 1097 of file waypointsprites.qc.
References entity(), NULL, vector, and WaypointSprite_Spawn().
Referenced by ctf_DelayedFlagSetup(), ctf_FlagcarrierWaypoints(), defrag_waypointsprites(), dom_controlpoint_setup(), ons_ControlPoint_Setup(), ons_GeneratorSetup(), spawnfunc(), SpawnGoal(), and target_objective_decrease_activate().
Definition at line 967 of file waypointsprites.qc.
References entity(), exteriormodeltoclient, fade_time, nextthink, teleport_time, time, WaypointSprite_Kill(), and WaypointSprite_UpdateOrigin().
Referenced by WaypointSprite_Spawn().
Definition at line 854 of file waypointsprites.qc.
References entity().
Referenced by buff_SetCooldown(), buff_Think(), Item_RespawnCountdown(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Icon_Heal(), ons_ControlPoint_Icon_Spawn(), and vehicles_showwp().
Definition at line 832 of file waypointsprites.qc.
References bound(), entity(), floor(), GetResource(), and SetResourceExplicit().
Referenced by ctf_CheckFlagReturn(), ctf_FlagcarrierWaypoints(), ctf_Handle_Drop(), destructible_heal(), func_breakable_behave_restore(), func_breakable_damage(), M_Mage_Defend_Heal(), Monster_Damage(), Monster_Heal(), Monster_Spawn_Setup(), MUTATOR_HOOKFUNCTION(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Icon_Heal(), ons_ControlPoint_Icon_Think(), ons_ControlPoint_UpdateSprite(), ons_GeneratorDamage(), ons_GeneratorHeal(), ons_GeneratorReset(), ons_GeneratorSetup(), powerups_DropItem(), powerups_DropItem_Think(), target_objective_decrease_activate(), and WaypointSprite_AttachCarrier().
Definition at line 844 of file waypointsprites.qc.
References entity().
Referenced by ctf_FlagcarrierWaypoints(), ctf_Handle_Drop(), func_breakable_behave_restore(), Monster_Spawn_Setup(), MUTATOR_HOOKFUNCTION(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Reset(), ons_ControlPoint_UpdateSprite(), ons_GeneratorDamage(), ons_GeneratorReset(), ons_GeneratorSetup(), powerups_DropItem(), target_objective_decrease_activate(), and WaypointSprite_AttachCarrier().
Definition at line 864 of file waypointsprites.qc.
References entity(), and vector.
Referenced by WaypointSprite_Think().
Definition at line 873 of file waypointsprites.qc.
References entity().
Referenced by DropBall(), GiveBall(), Item_RespawnCountdown(), ka_DropEvent(), ka_TouchEvent(), kh_Key_AssignTo(), MUTATOR_HOOKFUNCTION(), ons_ControlPoint_Icon_Spawn(), ons_ControlPoint_Reset(), ons_ControlPoint_Setup(), ons_GeneratorReset(), ons_GeneratorSetup(), target_objective_decrease_activate(), tka_DropEvent(), tka_TouchEvent(), vehicles_showwp(), and W_Seeker_Tag_Touch().
Definition at line 810 of file waypointsprites.qc.
References entity().
Referenced by CommonCommand_editmob(), dompoint_captured(), dompointtouch(), kh_Key_AssignTo(), MUTATOR_HOOKFUNCTION(), ons_ControlPoint_UpdateSprite(), ons_Generator_UpdateSprite(), target_objective_decrease_activate(), and tka_TouchEvent().
Definition at line 881 of file waypointsprites.qc.
References BIT, BITS, entity(), and vector.
Referenced by buff_Waypoint_Spawn(), ctf_DelayedFlagSetup(), ctf_FlagcarrierWaypoints(), dompoint_captured(), dompointtouch(), monster_changeteam(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), ons_ControlPoint_UpdateSprite(), and ons_Generator_UpdateSprite().
Definition at line 985 of file waypointsprites.qc.
References autocvar_sv_itemstime, enemy, entity(), IS_PLAYER, rule, SPRITERULE_DEFAULT, SPRITERULE_SPECTATOR, team, and warmup_stage.
Referenced by buff_Waypoint_visible_for_player(), and WaypointSprite_Spawn().