msburgess3200 / zombiereloaded

Automatically exported from code.google.com/p/zombiereloaded
0 stars 0 forks source link

Redesign volfeatures to have named volumes and linked features #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Define volumes in maps and put a name on that volume, then with another 
command link features to that volume.

Separate objects in volfeatures, make a manager for each feature: volume 
location, effects, triggers, features.

Original issue reported on code.google.com by richard.helgeby@gmail.com on 4 Jan 2010 at 8:22

GoogleCodeExporter commented 9 years ago
Volume data structure

Data will be separated into various arrays that refer to each other.

Volume:
InUse          - If the current index is in use or not
Enabled        - If the volume is active or not
LocationType   - Specifies what type of volume it is
LocationIndex  - Index in remote array of the specified type
Effect         - What effect to use
EffectColor    - Color of the effect
TeamFilter     - Which team(s) the volume applies on
TriggerDelay   - Delay for PlayerEnter event on the volume
ConflictAction - What to do if two features of the same type overlap
Priority       - Volume priorty

CuboidLocations:
InUse
xMin
yMin
zMin
xMax
yMax
zMax

SphereLocations:
InUse
x
y
z
Fade        - Enable fading
FadeType
MinDistance - Minimum fade distance
MaxDistance - Maximum fade distance

FadeTypes:
Linear         - Distance from the center point
LinearDistance - Distance between min and max
(maybe also exponential and inversely proportional amounts)

Each volumetric feature will refer to a volume index.

Original comment by richard.helgeby@gmail.com on 18 May 2010 at 4:38

GoogleCodeExporter commented 9 years ago

Original comment by richard.helgeby@gmail.com on 18 May 2010 at 5:38

GoogleCodeExporter commented 9 years ago
These arrays can be dumped to files:

addons/sourcemod/data/<mapname>_<array alias>.dat

Make a binary format for fast parsing and writing, so volumes can be created 
and 
modified in-game. It will need wireframe effects for visualizing volumes.

Original comment by richard.helgeby@gmail.com on 19 May 2010 at 12:18