Tuts > def

Entity defintions

This is mostly aimed at mod makers, but there is no reason you cant modify your own entitie def to suit your needs, like adding comments or even changing the colours of entities.

There are two types of entities you can use.

Resizable

The first type is a brush based entity. This is used to walls and can be resized.
To get a resizable brush add ? after the color value.

Fixed size

The second type is a fixed size entity. A example would be a speaker or a player spawnpoint.
For solid entities you need to add its bounding box min/max XYZ dimensions " (-16 -16 -16) (16 16 16)" after the color value.


Spawnflags

The next value after setting the dimension is spawnflags. These are specific to game code. They show up as tick/selction boxes in the entitie window. [shortcut key 'N']
These will be added together to enable multiple flags.
Note: 256 and above are taken up by the 'NOT IN' this game style spawnflag(eg. !Easy).
1st spawnflag=1
2nd spawnflag=2
3rd spawnflag=4
4th spawnflag=8
5th spawnflag=16
6th spawnflag=32
etc...

Anything between /* and *\ will make one new/unique entity.

The QUAKED part will not be seen, after that is the name you see in raidant entity list.

The "(.3.3.1)" is the entity colour you see in raidant. [red, green, blue].

//////////////////////////// add the below text to a .def file //////////////////////////////////////////

/*QUAKED TEST_non_resize (.3 .3 1) (-16 -16 -16) (16 16 16) Not_in_Deathmatch Trigger_Spawn
*\

/*QUAKED TEST_resizable (1 0 0) ? Sflag1 Sflag2 Sflag4 Sflag8 Sflag16
*\

/*QUAKED TEST_resizable2 (0 1 1) ? X X X X class1 class2
this area is for comments, comments appear in the entity window. [shortcut key 'N']
add anything you like. eg..
wait = .2 [default]
delay = 2 [default]
spawnflag = 16 [class1] will get basic weapons

note the next line defines a model you will see in radiant 3D view [i have used the "hmg_mod_cooling" for refrence]
model="models\pu_icon\coolmod\tris.md2"
*\