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');
144 string oldmessage = this.
message;
177 int valid = (door.itemkeys & store.itemkeys);
178 door.itemkeys &= ~valid;
183 play2(player, door.noise);
192 if(player.key_door_messagetime <=
time)
194 play2(player, door.noise3);
196 player.key_door_messagetime =
time + 2;
204 if(player.key_door_messagetime <=
time)
206 play2(player, door.noise3);
208 player.key_door_messagetime =
time + 2;
231 if (e.classname ==
"door") {
237 }
while ((e !=
this) && (e !=
NULL));
245 if (e.classname ==
"door") {
251 e.pos2 =
'0 0 0' - e.pos2;
255 && (((e.lip == 666) && (trigger.trigger_reverse == 0)) || ((e.lip != 666) && (trigger.trigger_reverse != 0)))))
261 }
while ((e !=
this) && (e !=
NULL));
309 if (!(this.
owner.dmg) && (
this.owner.message !=
""))
322 Damage (blocker,
this,
this, 10000, DEATH_HURTTRIGGER.m_id,
DMG_NOWEP, blocker.origin,
'0 0 0');
330 Damage (blocker,
this,
this, this.
dmg, DEATH_HURTTRIGGER.m_id,
DMG_NOWEP, blocker.origin,
'0 0 0');
349 Damage (blocker,
this,
this, 10000, DEATH_HURTTRIGGER.m_id,
DMG_NOWEP, blocker.origin,
'0 0 0');
386 if (this.
owner.nextthink <
this.owner.ltime +
this.owner.wait)
390 e.nextthink = e.ltime + e.wait;
392 }
while (e != this.
owner);
403 vector t1 = fmins, t2 = fmaxs;
405 trigger =
new(doortriggerfield);
408 trigger.owner =
this;
413 setsize (trigger, t1 -
'60 60 8', t2 +
'60 60 8');
437 return e1.team == e2.team;
440 if((e1.absmin_x > e2.absmax_x + DELTA)
441 || (e1.absmin_y > e2.absmax_y + DELTA)
442 || (e1.absmin_z > e2.absmax_z + DELTA)
443 || (e2.absmin_x > e1.absmax_x + DELTA)
444 || (e2.absmin_y > e1.absmax_y + DELTA)
445 || (e2.absmin_z > e1.absmax_z + DELTA)
486 for(t =
this; ; t = t.enemy)
501 for(t =
this; ; t = t.enemy)
505 if((t.targetname !=
"") && (
this.targetname ==
""))
507 if((t.message !=
"") && (
this.message ==
""))
509 if (t.absmin_x < cmins_x)
510 cmins_x = t.absmin_x;
511 if (t.absmin_y < cmins_y)
512 cmins_y = t.absmin_y;
513 if (t.absmin_z < cmins_z)
514 cmins_z = t.absmin_z;
515 if (t.absmax_x > cmaxs_x)
516 cmaxs_x = t.absmax_x;
517 if (t.absmax_y > cmaxs_y)
518 cmaxs_y = t.absmax_y;
519 if (t.absmax_z > cmaxs_z)
520 cmaxs_z = t.absmax_z;
526 for(t =
this; t; t = t.enemy)
639 setorigin(
this, this.
pos2);
650 setorigin(
this, this.
pos1);
673 this.
noise =
"misc/talk.wav";
678 this.
noise3 =
"misc/talk.wav";
696 this.
noise2 =
"plats/medplat1.wav";
697 this.
noise1 =
"plats/medplat2.wav";
715 s =
"sound/movers/doors/dr1_strt.wav";
724 e =
"sound/movers/doors/dr1_end.wav";
808 else if (!this.
speed)
825 if (t) this.
team = crc16(
false, t);
850 _setmodel(
this, this.
mdl);
859 this.
wait = ReadShort();
860 this.
speed = ReadShort();
863 this.
ltime = ReadCoord();
886 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)