Xonotic
|
#include "macro.qh"
Go to the source code of this file.
Macros | |
#define | _SELFWRAP_GET(T, e) (RVALUE, (e).__##T) |
#define | _SELFWRAP_SET(T, e, f) ((e).__##T = (f)) |
#define | ChangeYaw(e, ...) (__self = (e), builtin_ChangeYaw(__VA_ARGS__)) |
#define | checkclient(e, ...) (__self = (e), builtin_checkclient(__VA_ARGS__)) |
#define | droptofloor(e, ...) (__self = (e), builtin_droptofloor(__VA_ARGS__)) |
#define | ENGINE_EVENT() const entity this = __self |
#define | error(...) (__self = (NULL), builtin_error(__VA_ARGS__)) |
#define | getSendEntity(e) SELFWRAP_GET(SendEntity, e) |
#define | getthink(e) SELFWRAP_GET(think, e) |
#define | movetogoal(e, ...) (__self = (e), builtin_movetogoal(__VA_ARGS__)) |
#define | self (RVALUE, self) |
#define | self (this, self) |
#define | self (RVALUE, this) |
#define | SELFPARAM() noref const entity this = self |
#define | SELFPARAM() const entity this = __self |
#define | SELFWRAP(T, R, oldargs, args, forward) |
#define | SELFWRAP_GET(T, e) (RVALUE, (e).self##T) |
#define | SELFWRAP_SET(T, e, f) (_selftemp = (e), _selftemp.__##T = ((f) ? T##_self : func_null), _selftemp.self##T = (f)) |
#define | setcamera_transform(e, f) SELFWRAP_SET(camera_transform, e, f) |
#define | setpredraw(e, f) SELFWRAP_SET(predraw, e, f) |
#define | setself(s) (__self = s) |
#define | setSendEntity(e, f) SELFWRAP_SET(SendEntity, e, f) |
#define | setthink(e, f) SELFWRAP_SET(think, e, f) |
#define | walkmove(e, ...) (__self = (e), builtin_walkmove(__VA_ARGS__)) |
#define | WITHSELF(value, block) WITH(entity, __self, value, (RVALUE, block)) |
Functions | |
ALIAS ("self") entity __self | |
SELFWRAP (think, void,(),(entity this),(this)) SELFWRAP(predraw | |
SELFWRAP (camera_transform, vector,(vector org, vector ang),(entity this, vector org, vector ang),(this, org, ang)) SELFWRAP(SendEntity | |
return false to remove from the client More... | |
Variables | |
noref entity | _selftemp |
bool | |
entity int | sendflags |
entity | this |
entity | to |
void = #432 | |
#define ChangeYaw | ( | e, | |
... | |||
) | (__self = (e), builtin_ChangeYaw(__VA_ARGS__)) |
#define checkclient | ( | e, | |
... | |||
) | (__self = (e), builtin_checkclient(__VA_ARGS__)) |
#define droptofloor | ( | e, | |
... | |||
) | (__self = (e), builtin_droptofloor(__VA_ARGS__)) |
#define error | ( | ... | ) | (__self = (NULL), builtin_error(__VA_ARGS__)) |
#define getSendEntity | ( | e | ) | SELFWRAP_GET(SendEntity, e) |
Definition at line 98 of file self.qh.
Referenced by SUB_CalcAngleMoveEnt(), UpdateCSQCProjectile(), UpdateCSQCProjectileAfterTeleport(), and UpdateItemAfterTeleport().
#define getthink | ( | e | ) | SELFWRAP_GET(think, e) |
#define movetogoal | ( | e, | |
... | |||
) | (__self = (e), builtin_movetogoal(__VA_ARGS__)) |
#define SELFWRAP | ( | T, | |
R, | |||
oldargs, | |||
args, | |||
forward | |||
) |
#define SELFWRAP_SET | ( | T, | |
e, | |||
f | |||
) | (_selftemp = (e), _selftemp.__##T = ((f) ? T##_self : func_null), _selftemp.self##T = (f)) |
#define setcamera_transform | ( | e, | |
f | |||
) | SELFWRAP_SET(camera_transform, e, f) |
Referenced by WarpZone_Camera_SetUp(), and WarpZone_SetUp().
#define setpredraw | ( | e, | |
f | |||
) | SELFWRAP_SET(predraw, e, f) |
Definition at line 84 of file self.qh.
Referenced by Item_PreDraw(), and NET_HANDLE().
#define setSendEntity | ( | e, | |
f | |||
) | SELFWRAP_SET(SendEntity, e, f) |
Definition at line 97 of file self.qh.
Referenced by CSQCModel_LinkEntity(), CSQCModel_UnlinkEntity(), DelayThink(), MUTATOR_HOOKFUNCTION(), STATIC_INIT(), WarpZone_Projectile_Touch(), and WarpZone_Teleport().
#define setthink | ( | e, | |
f | |||
) | SELFWRAP_SET(think, e, f) |
Referenced by _StartItem(), Announcer_Gamestart(), Ban_LoadBans(), buff_Init(), buffs_BuffModel_Spawn(), CheatCommand(), CL_SpawnWeaponentity(), ClientInit_Spawn(), ClientKill_Silent(), ClientKill_TeamChange(), CommonCommand_timeout(), conveyor_think(), CopyBody(), CopyBody_Think(), ctf_FlagSetup(), Damage(), dom_controlpoint_setup(), dom_spawnpoint(), door_hit_top(), door_reset(), DropBall(), dropclient_schedule(), dumpnode(), FireGrapplingHook(), Freeze(), func_ladder_think(), GameCommand_make_mapinfo(), GENERIC_COMMAND(), GiveBall(), GoalTouch(), GrapplingHook_Stop(), InitBall(), Item_Reset(), Item_Respawn(), Item_ScheduleRespawnIn(), ka_DropEvent(), ka_Initialize(), ka_RespawnBall(), ka_TouchEvent(), kh_Initialize(), kh_Key_Spawn(), Local_Notification_WOVA(), make_mapinfo_Think(), Monster_Appear_Check(), Monster_Damage(), Monster_Dead(), Monster_Dead_Damage(), Monster_Dead_Fade(), Monster_Delay(), Monster_Delay_Action(), Monster_Spawn_Setup(), Monster_Think(), MUTATOR_HOOKFUNCTION(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Reset(), ons_ControlPoint_Setup(), ons_DelayedLinkSetup(), ons_GeneratorDamage(), ons_GeneratorReset(), ons_GeneratorSetup(), onslaught_controlpoint_icon_link(), pathlib_deletepath(), pathlib_mknode(), pathlib_walknode(), pathlib_waypointpath_autostep(), PingPLReport_Spawn(), plat_hit_top(), PlayerDamage(), Portal_MakeBrokenPortal(), Portal_MakeInPortal(), Portal_MakeOutPortal(), Portal_MakeWaitingPortal(), Portal_RemoveLater(), Portal_Spawn(), PostInit(), powerups_DropItem(), Promise_sleep(), PutObserverInServer(), PutPlayerInServer(), RandomSeed_Spawn(), ReadyRestart_force(), relocate_spawnpoint(), ResetBall(), round_handler_FirstThink(), round_handler_Spawn(), sandbox_ObjectSpawn(), SpawnBall(), spawnfunc(), STATIC_INIT(), SUB_CalcAngleMove(), SUB_CalcMove(), SUB_CalcMove_Bezier(), SUB_CalcMove_controller_think(), SUB_SetFade(), SUB_SetFade_Think(), SUB_UseTargets_Ex(), target_give_init(), TeamBalance_CheckAllowedTeams(), train_next(), train_wait(), trigger_push_touch(), UpdateChatBubble(), vehicle_initialize(), vehicle_tossgib(), vehicle_use(), vehicles_damage(), vehicles_projectile(), vehicles_projectile_damage(), vehicles_return(), vehicles_setreturn(), vehicles_showwp(), vehicles_spawn(), W_Model(), W_Nexball_Attack2(), W_PrepareExplosionByDamage(), W_ThrowNewWeapon(), WarpZone_Projectile_Touch(), WarpZone_RefSys_CheckCreate(), WarpZone_Teleport(), waypoint_schedulerelink(), and waypoint_think().
#define walkmove | ( | e, | |
... | |||
) | (__self = (e), builtin_walkmove(__VA_ARGS__)) |
Definition at line 17 of file self.qh.
Referenced by DropToFloor_Handler().
ALIAS | ( | "self" | ) |
SELFWRAP | ( | camera_transform | , |
vector | , | ||
(vector org, vector ang) | , | ||
(entity this, vector org, vector ang) | , | ||
(this, org, ang) | |||
) |
return false to remove from the client
Definition at line 96 of file self.qh.
Referenced by conveyor_think(), DelayThink(), NET_HANDLE(), STATIC_INIT(), and WarpZone_Touch().
Definition at line 96 of file self.qh.
Referenced by bd_find_dozer(), ClientData_Send(), ClientInit_SendEntity(), conveyor_think(), CSQCModel_Send(), ctf_CalculatePassVelocity(), DelayThink(), Drag_MoveDrag(), FindConnectedComponent(), func_ladder_think(), GENERIC_COMMAND(), LinkDoors(), MapVote_SendPicture(), Monster_CalculateVelocity(), MUTATOR_HOOKFUNCTION(), pathlib_h_none(), Portal_TeleportPlayer(), Projectile_DrawTrail(), Projectile_ResetTrail(), STATIC_INIT(), Teleport_Touch(), TeleportPlayer(), train_next(), trigger_impulse_touch_radial(), trigger_keylock_touch(), trigger_push_findtarget(), WarpZone_TeleportPlayer(), WarpZone_Touch(), WarpZone_TrailParticles(), waypoint_addlink_customcost(), and wordwrap().
void = #432 |
Definition at line 83 of file self.qh.
Referenced by GENERIC_COMMAND(), InitializeEntitiesRun(), and sys_phys_simulate_simple().