first commit

This commit is contained in:
2019-12-30 17:23:05 +01:00
commit 7fe19ee89f
1149 changed files with 271279 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
entity bodyque_head;
void() bodyque = {};
void() InitBodyQue =
{
float count = 10;
bodyque_head = world;
entity prev = world;
entity corpse = world;
while (count)
{
corpse = spawn();
corpse.classname = "bodyque";
if (bodyque_head == world)
bodyque_head = corpse;
if (prev != world)
prev.owner = corpse;
prev = corpse;
count = count - 1;
}
corpse.owner = bodyque_head;
};
void(entity ent) CopyToBodyQue =
{
bodyque_head.angles = ent.angles;
bodyque_head.model = ent.model;
bodyque_head.modelindex = ent.modelindex;
bodyque_head.frame = ent.frame;
bodyque_head.colormap = ent.colormap;
bodyque_head.movetype = ent.movetype;
bodyque_head.velocity = ent.velocity;
bodyque_head.flags = 0;
setorigin (bodyque_head, ent.origin);
setsize (bodyque_head, ent.mins, ent.maxs);
bodyque_head = bodyque_head.owner;
};