41 Damage (blocker,
this,
this, 10000, DEATH_HURTTRIGGER.m_id,
DMG_NOWEP, blocker.origin,
'0 0 0');
48 Damage (blocker,
this,
this, this.
dmg, DEATH_HURTTRIGGER.m_id,
DMG_NOWEP, blocker.origin,
'0 0 0');
81 Damage (blocker,
this,
this, 10000, DEATH_HURTTRIGGER.m_id,
DMG_NOWEP, blocker.origin,
'0 0 0');
178 int valid = (door.itemkeys & store.itemkeys);
179 door.itemkeys &= ~valid;
184 play2(player, door.noise);
193 if(player.key_door_messagetime <=
time)
195 play2(player, door.noise3);
197 player.key_door_messagetime =
time + 2;
205 if(player.key_door_messagetime <=
time)
207 play2(player, door.noise3);
209 player.key_door_messagetime =
time + 2;
232 if (e.classname ==
"door") {
238 }
while ((e !=
this) && (e !=
NULL));
246 if (e.classname ==
"door") {
252 e.pos2 =
'0 0 0' - e.pos2;
256 && (((e.lip == 666) && (trigger.trigger_reverse == 0)) || ((e.lip != 666) && (trigger.trigger_reverse != 0)))))
262 }
while ((e !=
this) && (e !=
NULL));
310 if (!(this.
owner.dmg) && (
this.owner.message !=
""))
323 Damage (blocker,
this,
this, 10000, DEATH_HURTTRIGGER.m_id,
DMG_NOWEP, blocker.origin,
'0 0 0');
331 Damage (blocker,
this,
this, this.
dmg, DEATH_HURTTRIGGER.m_id,
DMG_NOWEP, blocker.origin,
'0 0 0');
350 Damage (blocker,
this,
this, 10000, DEATH_HURTTRIGGER.m_id,
DMG_NOWEP, blocker.origin,
'0 0 0');
387 if (this.
owner.nextthink <
this.owner.ltime +
this.owner.wait)
391 e.nextthink = e.ltime + e.wait;
393 }
while (e != this.
owner);
404 vector t1 = fmins, t2 = fmaxs;
406 trigger =
new(doortriggerfield);
409 trigger.owner =
this;
414 setsize (trigger, t1 -
'60 60 8', t2 +
'60 60 8');
438 return e1.team == e2.team;
441 if((e1.absmin_x > e2.absmax_x + DELTA)
442 || (e1.absmin_y > e2.absmax_y + DELTA)
443 || (e1.absmin_z > e2.absmax_z + DELTA)
444 || (e2.absmin_x > e1.absmax_x + DELTA)
445 || (e2.absmin_y > e1.absmax_y + DELTA)
446 || (e2.absmin_z > e1.absmax_z + DELTA)
487 for(t =
this; ; t = t.enemy)
502 for(t =
this; ; t = t.enemy)
506 if((t.targetname !=
"") && (
this.targetname ==
""))
508 if((t.message !=
"") && (
this.message ==
""))
510 if (t.absmin_x < cmins_x)
511 cmins_x = t.absmin_x;
512 if (t.absmin_y < cmins_y)
513 cmins_y = t.absmin_y;
514 if (t.absmin_z < cmins_z)
515 cmins_z = t.absmin_z;
516 if (t.absmax_x > cmaxs_x)
517 cmaxs_x = t.absmax_x;
518 if (t.absmax_y > cmaxs_y)
519 cmaxs_y = t.absmax_y;
520 if (t.absmax_z > cmaxs_z)
521 cmaxs_z = t.absmax_z;
527 for(t =
this; t; t = t.enemy)
640 setorigin(
this, this.
pos2);
651 setorigin(
this, this.
pos1);
674 this.
noise =
"misc/talk.wav";
679 this.
noise3 =
"misc/talk.wav";
697 this.
noise2 =
"plats/medplat1.wav";
698 this.
noise1 =
"plats/medplat2.wav";
716 s =
"sound/movers/doors/dr1_strt.wav";
725 e =
"sound/movers/doors/dr1_end.wav";
809 else if (!this.
speed)
826 if (t) this.
team = crc16(
false, t);
851 _setmodel(
this, this.
mdl);
860 this.
wait = ReadShort();
861 this.
speed = ReadShort();
864 this.
ltime = ReadCoord();
887 setorigin(
this, this.
origin);
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float GetResource(entity e, Resource res_type)
Returns the current amount of resource the given entity has.
void TakeResource(entity receiver, Resource res_type, float amount)
Takes an entity some resource.
bool SetResourceExplicit(entity e, Resource res_type, float amount)
Sets the resource amount of an entity without calling any hooks.
void FindConnectedComponent(entity e,.entity fld, findNextEntityNearFunction_t nxt, isConnectedFunction_t iscon, entity pass)
const int INITPRIO_SETLOCATION
const int INITPRIO_LINKDOORS
const float SOLID_TRIGGER
void Damage(entity targ, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force)
#define DEATH_ISSPECIAL(t)
const int SF_TRIGGER_RESET
const int SF_TRIGGER_INIT
const int SF_TRIGGER_UPDATE
float door_send(entity this, entity to, float sf)
void door_init_startopen(entity this)
void door_use(entity this, entity actor, entity trigger)
void door_generic_plat_blocked(entity this, entity blocker)
bool door_check_keys(entity door, entity player)
void door_hit_bottom(entity this)
void door_reset(entity this)
void door_trigger_touch(entity this, entity toucher)
bool LinkDoors_isconnected(entity e1, entity e2, entity pass)
void door_init_shared(entity this)
void door_blocked(entity this, entity blocker)
void door_init_keys(entity this)
void LinkDoors(entity this)
void door_damage(entity this, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force)
void door_go_down(entity this)
void door_spawnfield(entity this, vector fmins, vector fmaxs)
entity LinkDoors_nextent(entity cur, entity near, entity pass)
void door_touch(entity this, entity toucher)
void door_hit_top(entity this)
void door_go_up(entity this, entity actor, entity trigger)
bool autocvar_sv_doors_always_open
const int SPAWNFLAGS_GOLD_KEY
const int DOOR_START_OPEN
const int SPAWNFLAGS_SILVER_KEY
void door_rotating_go_up(entity this, entity oth)
void door_rotating_go_down(entity this)
const int DOOR_ROTATING_BIDIR_IN_DOWN
const int DOOR_ROTATING_BIDIR
#define pass(name, colormin, colormax)
void SUB_UseTargets(entity this, entity actor, entity trigger)
string item_keys_keylist(float keylist)
Returns a string with a comma separated list of key names, as specified in keylist.
#define NET_HANDLE(id, param)
#define WriteHeader(to, id)
#define REGISTER_NET_LINKED(id)
void set_movetype(entity this, int mt)
void Send_Notification(NOTIF broadcast, entity client, MSG net_type, Notification net_name,...count)
string GetField_fullspawndata(entity e, string fieldname, bool vfspath)
Retrieves the value of a map entity field from fullspawndata.
string FindFileInMapPack(string pattern)
const int CH_TRIGGER_SINGLE
#define _sound(e, c, s, v, a)
void play2(entity e, string filename)
void SetMovedir(entity this)
bool InitMovingBrushTrigger(entity this)
void SUB_CalcMovePause(entity this)
void SUB_CalcMove(entity this, vector tdest, float tspeedtype, float tspeed, void(entity this) func)
void trigger_common_write(entity this, bool withtarget)
void trigger_common_read(entity this, bool withtarget)
void InitializeEntity(entity e, void(entity this) func, int order)