2020-09-05 19:48:15 +02:00
|
|
|
#ifndef DRLIMITS_H
|
|
|
|
#define DRLIMITS_H
|
|
|
|
|
|
|
|
// DRIVER 2 game engine limits
|
|
|
|
// please populate this file only with engine limits during refactoring
|
|
|
|
|
2020-11-07 18:37:23 +01:00
|
|
|
#define MAX_MODEL_SLOTS 1536 // DO NOT CHANGE. No effect in upping it - limited by cell types
|
2020-10-07 16:54:48 +02:00
|
|
|
#define MAX_CARS 20
|
2020-10-20 12:17:12 +02:00
|
|
|
|
2020-10-07 16:54:48 +02:00
|
|
|
#define MAX_CAR_MODELS 5
|
|
|
|
#define MAX_PEDESTRIANS 28
|
2020-10-20 12:17:12 +02:00
|
|
|
#define MAX_SEATED_PEDS 20
|
2020-10-11 12:19:12 +02:00
|
|
|
#define MAX_PLACED_PEDS 15
|
2020-10-07 16:54:48 +02:00
|
|
|
#define MAX_EXPLOSION_OBJECTS 5
|
|
|
|
#define MAX_THROWN_BOMBS 5
|
2020-11-19 18:24:31 +01:00
|
|
|
#define MAX_MOTION_CAPTURE 24
|
2020-09-05 19:48:15 +02:00
|
|
|
|
2020-12-06 10:56:36 +01:00
|
|
|
// denting
|
|
|
|
#define MAX_DAMAGE_ZONE_VERTS 50
|
|
|
|
#define MAX_DAMAGE_ZONE_POLYS 70
|
2020-12-24 19:26:23 +01:00
|
|
|
#define MAX_DAMAGE_LEVELS 256
|
2020-12-06 10:56:36 +01:00
|
|
|
|
|
|
|
#ifndef PSX
|
|
|
|
#define MAX_DENTING_VERTS 256
|
|
|
|
#define MAX_DENTING_UVS 256
|
|
|
|
#define MAX_DENTING_LOD_UVS 256
|
|
|
|
#else
|
|
|
|
#define MAX_DENTING_VERTS 132
|
|
|
|
#define MAX_DENTING_UVS 255
|
|
|
|
#define MAX_DENTING_LOD_UVS 134
|
|
|
|
#endif
|
|
|
|
|
2021-03-18 07:06:15 +01:00
|
|
|
// Mission limits
|
|
|
|
// DO NOT EDIT, breaks compatibility!
|
|
|
|
#define MAX_MISSION_THREADS 16
|
|
|
|
#define MAX_MISSION_TARGETS 16
|
|
|
|
|
2020-10-17 08:45:09 +02:00
|
|
|
// replay definitions.
|
|
|
|
// DO NOT EDIT, breaks compatibility!
|
|
|
|
#define MAX_REPLAY_CAMERAS 60
|
|
|
|
#define MAX_REPLAY_WAYPOINTS 150
|
|
|
|
#define MAX_REPLAY_PINGS 400
|
|
|
|
|
2020-10-17 09:26:57 +02:00
|
|
|
// debris limits
|
|
|
|
#define MAX_SMOKE 80
|
|
|
|
#define MAX_LEAVES 50
|
|
|
|
#define MAX_DEBRIS 60
|
|
|
|
#define MAX_GROUND_DEBRIS 16
|
|
|
|
#define MAX_DAMAGED_LAMPS 5
|
|
|
|
#define MAX_SMASHED_OBJECTS 8
|
|
|
|
#define MAX_LAMP_STREAKS 21
|
|
|
|
#define MAX_RAIN_DROPS 180
|
2020-10-17 08:45:09 +02:00
|
|
|
|
2020-11-06 15:56:50 +01:00
|
|
|
// driving games limit
|
|
|
|
#define MAX_SMASHED_CONES 6
|
|
|
|
|
2020-10-28 09:17:27 +01:00
|
|
|
// sound limits
|
|
|
|
#define MAX_SFX_CHANNELS 16 // DON'T CHANGE unless you have more than 24 channels (no PSX code)
|
|
|
|
#define MAX_LEVEL_ENVSOUNDS 32
|
|
|
|
#define MAX_SIREN_NOISES 2
|
|
|
|
#define MAX_CAR_NOISES 4
|
|
|
|
|
|
|
|
|
2020-09-05 19:48:15 +02:00
|
|
|
#endif // DRLIMITS_H
|