[COLOR=#333333]SoundSys.Set3DAttributes(footStepsSnd, &GetPosition(), 0, 0);[/COLOR]
static const float SpawnRatesByState[] = {
[COLOR=#FF0000]0, //PLAYER_IDLE,
0, //PLAYER_IDLEAIM,
0.6f, //PLAYER_MOVE_CROUCH,
0.54f, //PLAYER_MOVE_CROUCH_AIM,
0.49f, //PLAYER_MOVE_WALK_AIM,
0.95f, //PLAYER_MOVE_RUN,
1.0f, //PLAYER_MOVE_SPRINT,
0.95f, //PLAYER_MOVE_SWIM,
0.95f, //PLAYER_MOVE_SWIM,
0.95f, //PLAYER_MOVE_SWIM,
0.95f, //PLAYER_MOVE_SWIM,
0.95f, //PLAYER_MOVE_SWIM,
1.0f, //PLAYER_MOVE_PRONE, // TEST TEST
1.0f, //PLAYER_MOVE_PRONE_AIM,
1.0f, //PLAYER_PRONE_AIM,
1.0f, //PLAYER_PRONE_UP,
0, //PLAYER_PRONE_DOWN,
0, //PLAYER_PRONE_IDLE,
0, //PLAYER_PLAYER_DIE,[/COLOR]
};
COMPILE_ASSERT(R3D_ARRAYSIZE(SpawnRatesByState) == PLAYER_NUM_STATES); // 01 work
float spawnRate = SpawnRatesByState[PlayerState];