|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Typedefs | |
| using | Stream = int |
Functions | |
| bool (entity this, entity sender, bool isNew) m_read | |
| void | Net_ClientCommand (entity sender, string command) |
| void | Net_Flush () |
| void | Net_LinkEntity (entity e, bool docull, float dt, bool(entity this, entity to, int sendflags) sendfunc) |
| void | Net_UnlinkEntity (entity e) |
| float | ReadApproxPastTime () |
| int | Readbits (int num) |
| int | ReadByte () |
| entity | ReadCSQCEntity () |
| int | ReadInt24_t () |
| void | SetCustomizer (entity e, bool(entity this, entity client) customizer, void(entity this) uncustomizer) |
| STATIC_INIT (C2S_Protocol_renumber) | |
| STATIC_INIT (g_uncustomizables) | |
| STATIC_INIT (LinkedEntities_renumber) | |
| STATIC_INIT (TempEntities_renumber) | |
| STRING_ITERATOR (g_buf, string_null, 0) | |
| void | UncustomizeEntitiesRun () |
| void (entity this) uncustomizeentityforclient | |
| void | WriteByte (int to, int b) |
| void | WriteShort (int to, int b) |
Variables | |
| string | _net_prevmsgstr |
| noref int | _ReadSByte |
| const float | APPROXPASTTIME_ACCURACY_REQUIREMENT = 0.05 |
| string | g_buf |
| IntrusiveList | g_uncustomizables |
| int | m_id |
| const int | MSG_C2S = 0 |
| const int | MSG_ENTITY = 5 |
| string | netname |
| int | SendFlags |
| float | servertime |
| float | uncustomizeentityforclient_set |
| #define APPROXPASTTIME_MAX (16384 * APPROXPASTTIME_ACCURACY_REQUIREMENT) |
Definition at line 344 of file net.qh.
Referenced by ReadApproxPastTime().
| #define APPROXPASTTIME_RANGE (64 * APPROXPASTTIME_ACCURACY_REQUIREMENT) |
| #define Net_Accept | ( | classname | ) |
Definition at line 201 of file net.qh.
Referenced by NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), and NET_HANDLE().
| #define NET_GUARD | ( | id | ) |
Definition at line 17 of file net.qh.
| #define NET_HANDLE | ( | id, | |
| param ) |
Definition at line 15 of file net.qh.
Referenced by NET_HANDLE().
| #define Net_Reject | ( | ) |
| #define Read_byte | ( | ) |
| #define Read_float | ( | ) |
| #define Read_int | ( | ) |
| #define Read_string | ( | ) |
| #define ReadAngleVector | ( | ) |
Definition at line 369 of file net.qh.
Referenced by NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), and NET_HANDLE().
| #define ReadAngleVector2D | ( | ) |
Definition at line 370 of file net.qh.
Referenced by NET_HANDLE().
| #define ReadFloat | ( | ) |
Definition at line 366 of file net.qh.
Referenced by NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), and string().
| #define ReadInt48_t | ( | ) |
| #define ReadInt72_t | ( | ) |
| #define ReadRegistered | ( | r | ) |
Definition at line 298 of file net.qh.
Referenced by NET_HANDLE(), and NET_HANDLE().
| #define ReadSByte | ( | ) |
Definition at line 365 of file net.qh.
Referenced by NET_HANDLE(), and NET_HANDLE().
| #define ReadVector | ( | ) |
Definition at line 367 of file net.qh.
Referenced by Ent_WaypointSprite(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), and NET_HANDLE().
| #define ReadVector2D | ( | ) |
| #define REGISTER_NET_C2S | ( | id | ) |
Definition at line 88 of file net.qh.
| #define REGISTER_NET_LINKED | ( | id | ) |
Definition at line 55 of file net.qh.
| #define REGISTER_NET_TEMP | ( | id | ) |
Definition at line 28 of file net.qh.
| #define serialize | ( | T, | |
| stream, | |||
| ... ) |
Definition at line 243 of file net.qh.
Referenced by EliminatedPlayers_SendEntity(), NET_HANDLE(), NET_HANDLE(), and SurvivalStatuses_SendEntity().
| #define serialize_byte | ( | stream, | |
| this ) |
| #define serialize_float | ( | stream, | |
| this ) |
| #define serialize_marker | ( | stream, | |
| this ) |
Definition at line 282 of file net.qh.
| #define serialize_vector | ( | stream, | |
| this ) |
Definition at line 273 of file net.qh.
| #define Write_string | ( | to, | |
| f ) |
| #define WriteHeader | ( | to, | |
| id ) |
Definition at line 221 of file net.qh.
Referenced by _entcs_send(), _wepent_send(), accuracy_send(), bd_controller_send(), bumble_raygun_send(), clientcamera_send(), ClientData_Send(), ClientInit_misc(), ClientInit_SendEntity(), conveyor_send(), corner_send(), cpicon_send(), CSQCModel_Send(), CSQCProjectile_SendEntity(), CSQCVehicleSetup(), Damage_DamageInfo_SendEntity(), debug_send(), debug_text_3d_fn(), door_send(), electro_orb_send(), EliminatedPlayers_SendEntity(), fpscounter_update(), func_ladder_send(), g_clientmodel_genericsendentity(), generator_send(), globalsound(), GrapplingHookSend(), Inventory_Send(), IT_Write(), ItemSend(), laser_SendEntity(), MapVote_SendEntity(), MapVote_SendPicture(), minigame_SendEntity(), modeleffect_SendEntity(), Mutator_SendEntity(), Nagger_SendEntity(), Net_Write_Effect(), Net_Write_Notification(), ons_Link_Send(), orb_send(), PingPLReport_Think(), plat_send(), PlayerScore_SendEntity(), playersound(), pointparticles_SendEntity(), race_ClearTime(), race_ImposePenaltyTime(), race_send_rankings_cnt(), race_send_recordtime(), race_send_speedaward(), race_send_speedaward_alltimebest(), race_SendNextCheckpoint(), race_SendRanking(), race_SendStatus(), race_SendTime(), rainsnow_SendEntity(), RandomSeed_Send(), Registry_send(), ScoreInfo_SendEntity(), Send_WeaponComplain(), SendAuxiliaryXhair(), SendCSQCVaporizerBeamParticle(), SendCSQCVortexBeamParticle(), SetSpectatee_status(), SpawnCasing(), SpawnEvent_Send(), SpawnPoint_Send(), StatusEffects_Send(), SurvivalStatuses_SendEntity(), sv_notice_to(), target_music_sendto(), target_push_send(), target_speed_send(), te_csqc_lightningarc(), TeamScore_SendEntity(), teleport_dest_send(), train_send(), trigger_impulse_send(), trigger_keylock_send(), trigger_music_SendEntity(), trigger_push_send(), trigger_push_velocity_send(), trigger_teleport_send(), trigger_viewloc_send(), turret_send(), unpause_update(), viewloc_send(), Violence_GibSplash_SendEntity(), W_Arc_Beam_Send(), W_Tuba_NoteSendEntity(), WarpZone_Camera_Send(), WarpZone_Send(), WarpZone_Teleported_Send(), WaypointSprite_SendEntity(), wframe_send(), and write_damagetext().
| #define WriteRegistered | ( | r, | |
| to, | |||
| it ) |
Definition at line 299 of file net.qh.
Referenced by ScoreInfo_SendEntity().
Definition at line 177 of file net.qh.
References argv_start_index, entity(), g_buf, LOG_SEVEREF, LOG_WARNF, NULL, ReadByte(), REGISTRY_GET, STRING_ITERATOR_SET, strlen, and substring().
Referenced by SV_ParseClientCommand().
| void Net_Flush | ( | ) |
Definition at line 212 of file net.qh.
References g_buf, localcmd(), and strfree.
Referenced by CSQC_UpdateView().
| void Net_LinkEntity | ( | entity | e, |
| bool | docull, | ||
| float | dt, | ||
| bool(entity this, entity to, int sendflags) | sendfunc ) |
Definition at line 123 of file net.qh.
References EF_NODEPTHTEST, entity(), LOG_WARN, setSendEntity, setthink, SUB_Remove(), time, and vector.
Referenced by accuracy_init(), bd_setup_pieces(), ClientData_Attach(), ClientInit_Spawn(), conveyor_init(), CSQCProjectile(), Damage_DamageInfo(), EliminatedPlayers_Init(), entcs_attach(), FireGrapplingHook(), g_clientmodel_init(), Inventory_new(), Kill_Notification(), link_spawnpoint(), MapVote_Spawn(), minigame_addplayer(), modeleffect_spawn(), msle_spawn(), Mutator_Add(), MUTATOR_HOOKFUNCTION(), nades_spawn_orb(), Nagger_Init(), ons_camSetup(), ons_DelayedGeneratorSetup(), ons_GeneratorReset(), onslaught_controlpoint_icon_link(), PlayerScore_Attach(), PutPlayerInServer(), RandomSeed_Spawn(), ScoreInfo_Init(), Send_Notification(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), start_minigame(), StartItem(), StatusEffects_new(), SurvivalStatuses_Init(), target_push_link(), target_speed_link(), TeamScore_Spawn(), teleport_dest_link(), turret_link(), UpdateAuxiliaryXhair(), viewloc_init(), viewloc_link(), W_Arc_Beam(), W_Electro_Orb_ExplodeOverTime(), W_Tuba_NoteOn(), WaypointSprite_Spawn(), and wepent_link().
Definition at line 151 of file net.qh.
References entity(), func_null(), and setSendEntity.
Referenced by Mutator_Remove().
| float ReadApproxPastTime | ( | ) |
Definition at line 379 of file net.qh.
References APPROXPASTTIME_MAX, ReadByte(), and servertime.
Definition at line 372 of file net.qh.
References ReadByte(), and ReadInt24_t().
Referenced by NET_HANDLE(), and NET_HANDLE().
| int ReadByte | ( | ) |
Referenced by cl_notice_read(), CSQC_Ent_Update(), CSQC_Parse_TempEntity(), Ent_WaypointSprite(), GameTypeVote_ReadOption(), MapVote_Init(), MapVote_ReadMask(), MapVote_ReadOption(), MapVote_UpdateVotes(), Net_ClientCommand(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), net_handle_ServerWelcome(), Net_MapVote_Picture(), ReadApproxPastTime(), Readbits(), ReadEntcs(), ReadInt24_t(), ReadWepent(), and void().
| entity ReadCSQCEntity | ( | ) |
| int ReadInt24_t | ( | ) |
Definition at line 355 of file net.qh.
References ReadByte().
Referenced by NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), Readbits(), ReadWepent(), and ReadWepSet().
| void SetCustomizer | ( | entity | e, |
| bool(entity this, entity client) | customizer, | ||
| void(entity this) | uncustomizer ) |
Definition at line 159 of file net.qh.
References entity(), g_uncustomizables, IL_PUSH(), and setcefc.
Referenced by LODmodel_attach().
| STATIC_INIT | ( | C2S_Protocol_renumber | ) |
| STATIC_INIT | ( | g_uncustomizables | ) |
| STATIC_INIT | ( | LinkedEntities_renumber | ) |
| STATIC_INIT | ( | TempEntities_renumber | ) |
| STRING_ITERATOR | ( | g_buf | , |
| string_null | , | ||
| 0 | ) |
References g_buf, and string_null.
| void UncustomizeEntitiesRun | ( | ) |
Definition at line 168 of file net.qh.
References g_uncustomizables, and IL_EACH.
Referenced by StartFrame().
Definition at line 306 of file net.qh.
References assert, g_buf, MSG_C2S, strcat(), strcpy, string_null, and yenc_single.
Referenced by WriteShort().
Definition at line 314 of file net.qh.
References WriteByte().
| string g_buf |
Definition at line 210 of file net.qh.
Referenced by Net_ClientCommand(), Net_Flush(), STRING_ITERATOR(), and WriteByte().
| IntrusiveList g_uncustomizables |
Definition at line 120 of file net.qh.
Referenced by SetCustomizer(), STATIC_INIT(), and UncustomizeEntitiesRun().
| const int MSG_C2S = 0 |
Definition at line 199 of file net.qh.
Referenced by fpscounter_update(), unpause_update(), and WriteByte().
| const int MSG_ENTITY = 5 |
Definition at line 115 of file net.qh.
Referenced by _entcs_send(), _wepent_send(), accuracy_send(), bd_controller_send(), bd_server_event(), bumble_raygun_send(), clientcamera_send(), ClientData_Send(), ClientInit_SendEntity(), conveyor_send(), corner_send(), cpicon_send(), CSQCModel_Send(), CSQCProjectile_SendEntity(), Damage_DamageInfo_SendEntity(), door_send(), electro_orb_send(), EliminatedPlayers_SendEntity(), entcs_send(), func_ladder_send(), g_clientmodel_genericsendentity(), GameTypeVote_SendOption(), generator_send(), GrapplingHookSend(), Inventory_Send(), Inventory_Write(), ItemSend(), laser_SendEntity(), MapVote_SendEntity(), MapVote_SendOption(), MapVote_WriteMask(), minigame_SendEntity(), modeleffect_SendEntity(), Mutator_SendEntity(), Nagger_SendEntity(), Net_Write_Notification(), ons_Link_Send(), orb_send(), plat_send(), PlayerScore_SendEntity(), pointparticles_SendEntity(), pong_server_event(), pp_server_event(), rainsnow_SendEntity(), RandomSeed_Send(), ScoreInfo_SendEntity(), SendAuxiliaryXhair(), SpawnEvent_Send(), SpawnPoint_Send(), StatusEffects_Send(), StatusEffects_Write(), SurvivalStatuses_SendEntity(), target_push_send(), target_speed_send(), TeamScore_SendEntity(), teleport_dest_send(), train_send(), trigger_common_write(), trigger_impulse_send(), trigger_keylock_send(), trigger_music_SendEntity(), trigger_push_send(), trigger_push_velocity_send(), trigger_teleport_send(), trigger_viewloc_send(), ttt_server_event(), turret_send(), viewloc_send(), W_Arc_Beam_Send(), W_Tuba_NoteSendEntity(), WarpZone_Camera_Send(), WarpZone_Send(), WarpZone_Teleported_Send(), WaypointSprite_SendEntity(), wepent_send(), and write_damagetext().
| int SendFlags |
Definition at line 118 of file net.qh.
Referenced by ClientInit_CheckUpdate(), conveyor_init(), door_init_startopen(), door_reset(), entcs_think(), ewheel_move_idle(), g_clientmodel_dropbyspawnflags(), g_clientmodel_setcolormaptoactivator(), g_clientmodel_think(), generic_netlinked_reset(), generic_netlinked_setactive(), GrapplingHookThink(), Item_Think(), Item_Touch(), ItemUpdate(), laser_setactive(), misc_laser_aim(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Icon_Think(), ons_DelayedLinkSetup(), ons_GeneratorDamage(), ons_GeneratorReset(), ons_Link_CheckUpdate(), plat_reset(), pointparticles_think(), pong_ball_think(), pong_paddle_think(), RandomSeed_Think(), RemoveItem(), spawnfunc(), spawnfunc(), spawnpoint_reset(), spawnpoint_setactive(), spawnpoint_think(), spawnpoint_use(), StartItem(), teleport_dest_link(), trigger_link(), trigger_push_updatelink(), trigger_push_use(), trigger_teleport_use(), turret_damage(), turret_die(), turret_respawn(), turret_track(), turrets_setframe(), W_Arc_Beam_Think(), W_Tuba_NoteThink(), WarpZone_InitStep_FinalizeTransform(), and WarpZoneCamera_InitStep_FindTarget().
| float servertime |
Definition at line 348 of file net.qh.
Referenced by anticheat_fixangle(), anticheat_init(), anticheat_physics(), anticheat_report_to_eventlog(), anticheat_report_to_playerstats(), CSQC_Ent_Update(), Drag_Update(), Ent_WaypointSprite(), NET_HANDLE(), ReadApproxPastTime(), and StartFrame().
| float uncustomizeentityforclient_set |
Definition at line 157 of file net.qh.
Referenced by CopyBody().