new entity type "dummy"

Adds a new entity type for use in scripts. The entity does not affect
rendering or physics and is not saved to map files.
This commit is contained in:
ac-stef
2016-08-26 14:08:56 +02:00
parent a33577c039
commit 77b7e9bb87
3 changed files with 9 additions and 6 deletions
+5 -3
View File
@@ -448,7 +448,7 @@ const char *entnames[] =
"none?",
"light", "playerstart", "pistol", "ammobox","grenades",
"health", "helmet", "armour", "akimbo",
"mapmodel", "trigger", "ladder", "ctf-flag", "sound", "clip", "plclip", ""
"mapmodel", "trigger", "ladder", "ctf-flag", "sound", "clip", "plclip", "dummy", ""
};
// entity attribute scaling and wraparound definitions for mapformat 10
@@ -470,7 +470,8 @@ short entwraparound[MAXENTTYPES][7] =
{ -3600, 0, 0, 0, 0, 0, 0 }, // ctf-flag
{ 256, 0, 0, 0, 0, 0, 0 }, // sound
{ 0, 0, 0, 0, 0, 0, 4 }, // clip
{ 0, 0, 0, 0, 0, 0, 4 } // plclip
{ 0, 0, 0, 0, 0, 0, 4 }, // plclip
{ 0, 0, 0, 0, 0, 0, 0 } // dummy
};
uchar entscale[MAXENTTYPES][7] =
@@ -491,7 +492,8 @@ uchar entscale[MAXENTTYPES][7] =
{ 10, 1, 1, 1, 1, 1, 1 }, // ctf-flag
{ 1, 1, 1, 1, 1, 1, 1 }, // sound
{ 10, 5, 5, 5, 1, 10, 1 }, // clip
{ 10, 5, 5, 5, 1, 10, 1 } // plclip
{ 10, 5, 5, 5, 1, 10, 1 }, // plclip
{ 1, 1, 1, 1, 1, 1, 1 } // dummy
};
// see entity.h:61: struct itemstat { int add, start, max, sound; };