Furniture

`Furniture'

Classnames: obj_barrel, obj_barrel_exploding, obj_barrel_indestructible,
obj_barstool/beefslab/bell/bench/bonepile/book_closed/book_open
obj_bush1/cart/cauldron/chair/chest1/chest2/chest3
obj_corpse1/corpse2/fence/flag/fountain/hedge1/hedge2/hedge3
obj_pew/plant_generic/plant_meso/plant_rome
obj_playerhead_assassin/crusader/necromancer/paladin
obj_pot1/pot2/pot3/seaweed/skull/skullstick/skullstick2
obj_statue_angel/athena/caesar/king/lion/mars/mummy/mummy_head
obj_statue_neptune/olmec/snake/snake_coil/tut/sword/
obj_tombstone1/tombstone2/tree/tree2/webs
Purpose: Interior decoration.
H2 Code: object.hc
fields required: origin
Also called `objects'; as you see, there are a great variety of these! They typically can be pushed around, smashed, and spawn other objects when themselves destroyed. Many of them have various special properties, such as multiple skins (sometimes determined by the worldtype-value of the map's worldspawn entity), but I haven't managed to sort them all out into useful groups yet.

Below I list a few useful & recurrent fields, which I've tested with obj_chair but not the other objects, consult Eutectic or your map-editor help for more details (which, sigh, won't necessarily be correct, since they are mostly derived from the comments in the .hc code, which are often inaccurate or icomplete). Hopefully I'll manage to improve this someday.

Fields

origin Value is a triple of number, location of item. Your editor should manage this visually, automatically.
angle Value a number, determines which way the entity is facing. default = 0.
mass Value a number, determines pushability of the object, also how effect it is at activating pressure plates (haven't looked into this carefully, but a mass of 1000 will make a chair unpushable). Default depends on object-type.
health Value a number, determines how hard it is to smash the object. Default depends on object-type.
abslight Value a number between 0 and 1, determining how bright the object seems in darkness. Default = 0.
scale Value a number, modifies the size of the object (scale 2 makes obj_chair seem twice as big). Default = 1.

Back to the list.