|
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 | _ENTCS_PROP(id, ispublic, checkprop, checkprop_pl, setprop, svsend, clreceive) |
| #define | DEC_FACTOR (360 / 64) |
| #define | DEC_FACTOR 10 |
| #define | ENTCS_PROP(id, ispublic, checkprop, checkprop_pl, setprop, svsend, clreceive) |
| #define | ENTCS_PROP_CODED(id, ispublic, checkprop, checkprop_pl, setprop, decfactor, svsend, clreceive) |
| #define | ENTCS_PROP_RESOURCE(id, ispublic, checkprop, setprop, decfactor, svsend, clreceive) |
| #define | ENTCS_SET_MUTABLE_STRING(var, x) |
| the engine player name strings are mutable! | |
| #define | ENTCS_SET_NORMAL(var, x) |
Variables | |
| ent | angles = v |
| angles_y | |
| clientcolors | |
| DEC_FACTOR | |
| int | ENTCS_PRIVATEMASK = 0 |
| int | ENTCS_PROP_ENTNUM_id = 0 |
| int | ENTCS_PROP_HEALTH_id = 0 |
| int | ENTCS_PROP_ORIGIN_id = 0 |
| int | ENTCS_PUBLICMASK = 0 |
| ENTCS_SET_NORMAL | |
| false | |
| handicap_level | |
| bool | m_public |
| model | |
| RES_ARMOR | |
| solid | |
| sv_solid | |
| true | |
| v | y = ReadByte() * DEC_FACTOR |
| #define _ENTCS_PROP | ( | id, | |
| ispublic, | |||
| checkprop, | |||
| checkprop_pl, | |||
| setprop, | |||
| svsend, | |||
| clreceive ) |
Definition at line 49 of file ent_cs.qc.
| #define DEC_FACTOR (360 / 64) |
Definition at line 125 of file ent_cs.qc.
Referenced by ENTCS_PROP_RESOURCE().
| #define ENTCS_PROP | ( | id, | |
| ispublic, | |||
| checkprop, | |||
| checkprop_pl, | |||
| setprop, | |||
| svsend, | |||
| clreceive ) |
Definition at line 59 of file ent_cs.qc.
| #define ENTCS_PROP_CODED | ( | id, | |
| ispublic, | |||
| checkprop, | |||
| checkprop_pl, | |||
| setprop, | |||
| decfactor, | |||
| svsend, | |||
| clreceive ) |
Definition at line 63 of file ent_cs.qc.
| #define ENTCS_PROP_RESOURCE | ( | id, | |
| ispublic, | |||
| checkprop, | |||
| setprop, | |||
| decfactor, | |||
| svsend, | |||
| clreceive ) |
Definition at line 82 of file ent_cs.qc.
| #define ENTCS_SET_MUTABLE_STRING | ( | var, | |
| x ) |
the engine player name strings are mutable!
Definition at line 108 of file ent_cs.qc.
Referenced by ENTCS_PROP().
| #define ENTCS_SET_NORMAL | ( | var, | |
| x ) |
Definition at line 103 of file ent_cs.qc.
Referenced by ENTCS_PROP(), ENTCS_PROP(), ENTCS_PROP(), ENTCS_PROP(), and ENTCS_PROP_RESOURCE().
Definition at line 191 of file ent_cs.qc.
References BIT, ENTCS_PROP_ENTNUM_id, ENTCS_PUBLICMASK, entity(), etof, FOREACH, INGAME, IS_PLAYER, m_forceupdate, MSG_ENTITY, owner, radar_showenemies, SAME_TEAM, WriteByte(), WriteHeader, and WriteShort().
Referenced by entcs_attach(), and entcs_send().
Definition at line 279 of file ent_cs.qc.
References entcs_receiver, entity(), NULL, strfree, and sv_entnum.
Referenced by NET_HANDLE().
Definition at line 251 of file ent_cs.qc.
References _entcs_send(), assert, BITS, CS(), entcs, entcs_send(), entcs_think(), entity(), FOREACH_CLIENT, IS_REAL_CLIENT, msg_entity, MSG_ONE, Net_LinkEntity(), new_pure, setthink, and time.
Referenced by ClientState_attach().
Definition at line 36 of file ent_cs.qc.
References BIT, CS(), ENTCS_PROP_ORIGIN_id, and entity().
Referenced by globalsound(), and playersound().
| ENTCS_PROP | ( | FRAGS | , |
| true | , | ||
| frags | , | ||
| frags | , | ||
| ENTCS_SET_NORMAL | , | ||
| { WriteShort(chan, ent.frags);} | , | ||
| { ent.frags=ReadShort();} | ) |
References ENTCS_SET_NORMAL, frags, and WriteShort().
| ENTCS_PROP | ( | NAME | , |
| true | , | ||
| netname | , | ||
| netname | , | ||
| ENTCS_SET_MUTABLE_STRING | , | ||
| { WriteString(chan, ent.netname);} | , | ||
| { strcpy(ent.netname, ReadString());} | ) |
References ENTCS_SET_MUTABLE_STRING, netname, and WriteString().
| ENTCS_PROP | ( | ORIGIN | , |
| false | , | ||
| origin | , | ||
| origin | , | ||
| ENTCS_SET_NORMAL | , | ||
| { WriteVector(chan, ent.origin);} | , | ||
| { ent.has_sv_origin=true;vector v=ReadVector();setorigin(ent, v);} | ) |
References ENTCS_SET_NORMAL, and origin.
| ENTCS_PROP | ( | SKIN | , |
| true | , | ||
| skin | , | ||
| skin | , | ||
| ENTCS_SET_NORMAL | , | ||
| { WriteByte(chan, ent.skin);} | , | ||
| { ent.skin=ReadByte();} | ) |
References ENTCS_SET_NORMAL, skin, and WriteByte().
| ENTCS_PROP | ( | WANTSJOIN | , |
| true | , | ||
| wants_join | , | ||
| wants_join | , | ||
| ENTCS_SET_NORMAL | , | ||
| { WriteChar(chan, ent.wants_join);} | , | ||
| { ent.wants_join=ReadChar();} | ) |
References ENTCS_SET_NORMAL, wants_join, and WriteChar().
| ENTCS_PROP_RESOURCE | ( | HEALTH | , |
| false | , | ||
| RES_HEALTH | , | ||
| ENTCS_SET_NORMAL | , | ||
| DEC_FACTOR | , | ||
| { WriteByte(chan, bound(0, GetResource(ent, RES_HEALTH)/DEC_FACTOR, 255));} | , | ||
| { ent.healthvalue=ReadByte() *DEC_FACTOR;} | ) |
References bound(), DEC_FACTOR, ENTCS_SET_NORMAL, GetResource(), and WriteByte().
Definition at line 220 of file ent_cs.qc.
References _entcs_send(), entity(), and MSG_ENTITY.
Referenced by entcs_attach().
Definition at line 225 of file ent_cs.qc.
References BIT, ENTCS_PROP_HEALTH_id, ENTCS_PROP_ORIGIN_id, entity(), FOREACH, intermission_running, IS_PLAYER, nextthink, owner, SendFlags, and time.
Referenced by entcs_attach(), and ReadEntcs().
Definition at line 183 of file ent_cs.qc.
References CS(), ENTCS_PRIVATEMASK, entity(), FOREACH_CLIENT, and IS_PLAYER.
Referenced by MUTATOR_HOOKFUNCTION(), and PutObserverInServer().
| NET_HANDLE | ( | CLIENT_ENTCS | , |
| bool | isnew ) |
| NET_HANDLE | ( | ENT_CLIENT_ENTCS | , |
| bool | isnew ) |
Definition at line 351 of file ent_cs.qc.
References Ent_RemoveEntCS(), make_pure, and ReadEntcs().
Definition at line 312 of file ent_cs.qc.
References BIT, boolean, ENTCS_PROP_ENTNUM_id, entcs_receiver, entcs_think(), entity(), FOREACH, getthink, IFLAG_ORIGIN, InterpolateOrigin_Note(), InterpolateOrigin_Undo(), new_pure, NULL, ReadByte(), and setthink.
Referenced by NET_HANDLE(), and NET_HANDLE().
| STATIC_INIT | ( | ENTCS_PUBLICMASK | ) |
Definition at line 172 of file ent_cs.qc.
References BIT, ENTCS_PRIVATEMASK, ENTCS_PUBLICMASK, and FOREACH.
| STATIC_INIT | ( | EntCSProps_renumber | ) |
| STATIC_INIT | ( | EntCSProps_setglobalids | ) |
Definition at line 25 of file ent_cs.qc.
References ENTCS_PROP_ENTNUM_id, ENTCS_PROP_HEALTH_id, ENTCS_PROP_ORIGIN_id, and FOREACH.
| ent angles = v |
Definition at line 121 of file ent_cs.qc.
Referenced by _Movetype_Physics_ClientFrame(), _Movetype_Physics_Follow(), _Movetype_Physics_Frame(), _Movetype_Physics_Toss(), _Movetype_PushMove(), anticheat_spectatecopy(), bot_think(), buff_Respawn(), bumblebee_exit(), CheatImpulse(), CL_WeaponEntity_SetModel(), clientcamera_send(), CopyBody(), CSQCModel_Effects_Apply(), CSQCPlayer_Physics(), ctf_FlagThink(), door_rotating_init_startopen(), door_rotating_reset(), Draw_ArcBeam(), Draw_GrapplingHook(), dynlight_find_aiment(), electro_orb_draw(), ewheel_draw(), g_clientmodel_genericsendentity(), GrapplingHookThink(), InterpolateOrigin_Do(), InterpolateOrigin_Note(), InterpolateOrigin_Undo(), ItemDraw(), ItemSend(), ka_RespawnBall(), LaunchDebris(), M_Golem_Attack_Smash(), M_Mage_Attack_Spike(), M_Mage_Attack_Teleport(), misc_laser_aim(), ModelEffect_Draw(), modeleffect_SendEntity(), Monster_Dead_Fade(), monster_facing(), Monster_Move(), Monster_Move_2D(), Monster_Reset(), Monster_Spawn(), movelib_groundalign4point(), Movetype_Physics_MatchTicrate(), nade_darkness_boom(), nade_ice_boom(), napalm_ball_think(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), orb_draw(), physical_item_damage(), physical_item_think(), physical_item_touch(), PlayerDamage(), PlayerThink(), PlayerTouchWall(), PM_dodging(), PM_dodging_checkpressedkeys(), Projectile_Draw(), PutObserverInServer(), PutPlayerInServer(), RaceCarPhysics(), racer_exit(), raptor_exit(), relocate_spawnpoint(), SetMovedir(), spawner_use(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), SpectateCopy(), spiderbot_blowup(), spiderbot_exit(), StartItem(), SUB_CalcAngleMove(), SUB_CalcAngleMoveDone(), SV_OnEntityPreSpawnFunction(), sys_phys_simulate_simple(), sys_phys_update(), target_push_init(), target_push_send(), target_teleporter_checktarget(), tka_RespawnBall(), trigger_common_write(), turret_construct(), turret_hellion_missile_think(), turret_hk_missile_think(), turret_send(), turret_track(), vehicle_initialize(), vehicles_damage(), vehicles_painframe(), vehicles_spawn(), viewloc_send(), viewmodel_animate(), W_Arc_Bolt_Damage(), W_Arc_Bolt_Touch(), W_Crylink_Touch(), W_Devastator_Damage(), W_Devastator_Think(), W_Hagar_Damage(), W_Hagar_Touch2(), W_MineLayer_Damage(), W_Porto_Touch(), walker_draw(), walker_fire_rocket(), walker_melee_do_dmg(), walker_rocket_loop3(), WarpZone_Teleported_Send(), WarpZone_Think(), WarpZoneCamera_Think(), and WarpZoneLib_ExactTrigger_Init().
| angles_y |
Definition at line 119 of file ent_cs.qc.
Referenced by _Movetype_PushMove(), cpicon_draw(), info_autoscreenshot_findtarget(), M_Mage_Attack_Teleport(), Monster_Move(), Monster_Move_2D(), NET_HANDLE(), RaceCarPhysics(), spawnfunc(), SUB_CalcAngleMove(), turret_send(), viewloc_link(), and viewloc_PlayerPhysics().
| clientcolors |
Definition at line 147 of file ent_cs.qc.
Referenced by bot_clientconnect(), bot_setnameandstuff(), CopyBody(), nades_PlayerColor(), ons_Link_CheckUpdate(), ons_Link_Send(), and setcolor().
| int ENTCS_PRIVATEMASK = 0 |
Definition at line 171 of file ent_cs.qc.
Referenced by entcs_update_players(), and STATIC_INIT().
| int ENTCS_PROP_ENTNUM_id = 0 |
Definition at line 22 of file ent_cs.qc.
Referenced by _entcs_send(), ReadEntcs(), and STATIC_INIT().
| int ENTCS_PROP_HEALTH_id = 0 |
Definition at line 24 of file ent_cs.qc.
Referenced by entcs_think(), and STATIC_INIT().
| int ENTCS_PROP_ORIGIN_id = 0 |
Definition at line 23 of file ent_cs.qc.
Referenced by entcs_force_origin(), entcs_think(), and STATIC_INIT().
| int ENTCS_PUBLICMASK = 0 |
Definition at line 171 of file ent_cs.qc.
Referenced by _entcs_send(), and STATIC_INIT().
| model |
Definition at line 139 of file ent_cs.qc.
Referenced by assault_wall_think(), Turret::ATTRIB(), ChatBubbleThink(), CL_ExteriorWeaponentity_Think(), CL_WeaponEntity_SetModel(), CL_Weaponentity_Think(), CopyBody(), CSQCModel_AutoTagIndex_Apply(), CSQCModel_Hook_PostUpdate(), CSQCModel_Hook_PreDraw(), CSQCModel_LOD_Apply(), CSQCPlayer_FallbackFrame(), CSQCPlayer_ModelAppearance_Apply(), CSQCPlayer_ModelAppearance_PostUpdate(), CSQCPlayer_ModelAppearance_PreUpdate(), dompoint_captured(), dompointtouch(), door_send(), func_breakable_setup(), GameCommand_animbench(), GameCommand_gettaginfo(), InitSolidBSPTrigger(), InitTrigger(), ItemSetModel(), Monster_Sounds_Update(), plat_send(), player_getspecies(), pointparticles_SendEntity(), PutObserverInServer(), PutPlayerInServer(), SetBrushEntityModel(), spawn_item_key(), SpawnBall(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), StartItem(), target_spawn_helper_setmodel(), train_send(), trigger_music_SendEntity(), turret_die(), UpdatePlayerSounds(), and WarpZoneLib_ExactTrigger_Init().
| RES_ARMOR |
Definition at line 130 of file ent_cs.qc.
Referenced by bumblebee_pilot_frame(), CA_PreventStalemate(), CheatImpulse(), CopyBody(), ctf_FlagcarrierWaypoints(), Damage(), Draw_ShowNames(), Draw_ShowNames_All(), formatmessage(), frag_centermessage_override(), GetResourceLimit(), GiveItems(), GiveResource(), GiveWarmupResources(), havocbot_chooseenemy(), havocbot_goalrating_ctf_enemyflag(), havocbot_goalrating_enemyplayers(), havocbot_goalrating_item_can_be_left_to_teammate(), havocbot_movetogoal(), healtharmor_pickupevalfunc(), if(), item_armorbig_init(), item_armormedium_init(), item_armormega_init(), item_armorsmall_init(), Item_GiveTo(), lms_RemovePlayer(), M_Mage_Defend_Heal(), M_Mage_Defend_Heal_Check(), M_Mage_Defend_Shield(), M_Zombie_Defend_Block(), M_Zombie_Defend_Block_End(), Monster_Damage(), Monster_Spawn_Setup(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), Obituary(), player_regen(), PlayerCorpseDamage(), PlayerDamage(), powerups_DropItem(), powerups_DropItem_Think(), PutObserverInServer(), PutPlayerInServer(), spawnfunc(), SpectateCopy(), StartItem(), target_init_use(), W_Arc_Beam_Think(), W_Fireball_Explode(), and WaypointSprite_AttachCarrier().
| solid |
Definition at line 165 of file ent_cs.qc.
Referenced by _Movetype_ContentsMask(), _Movetype_Impact(), _Movetype_LinkEdict_TouchAreaGrid(), _Movetype_Physics_Walk(), _Movetype_PushEntity(), _Movetype_PushEntityTrace(), _Movetype_PushMove(), assault_wall_think(), buff_Init(), CopyBody(), cpicon_construct(), crosshair_trace_plusvisibletriggers__is_wz(), dom_controlpoint_setup(), func_breakable_look_destroyed(), func_breakable_look_restore(), g_clientmodel_genericsendentity(), g_clientmodel_use(), generator_construct(), InitMovingBrushTrigger(), InitSolidBSPTrigger(), InitTrigger(), Item_Touch(), ka_TouchEvent(), Monster_Dead(), Monster_Spawn(), multi_reset(), multi_wait(), NET_HANDLE(), NET_HANDLE(), ons_ControlPoint_Icon_BuildThink(), physical_item_think(), PlayerCorpseDamage(), PlayerDamage(), Portal_Think(), Portal_Touch(), PutObserverInServer(), PutPlayerInServer(), racer_blowup(), RemoveItem(), respawn(), spawn_item_key(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spiderbot_blowup(), sys_phys_simulate_simple(), teleport_findtarget(), tka_TouchEvent(), turret_construct(), turret_die(), turret_initialize(), turret_respawn(), vehicles_spawn(), W_Electro_Orb_ExplodeOverTime(), W_Mortar_Grenade_Touch1(), W_Mortar_Grenade_Touch2(), and WarpZoneLib_ExactTrigger_Init().
| v y = ReadByte() * DEC_FACTOR |
Definition at line 121 of file ent_cs.qc.
Referenced by compressShortVector(), drawsetcliparea(), gecko_mousemove(), ListBox_draw(), PM_dodging_checkpressedkeys(), vec_epsilon(), vector(), and void().