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:
+5
-3
@@ -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; };
|
||||
|
||||
Reference in New Issue
Block a user