Source: Allright / Compile ERROR WarZ.sln / AI_Player.CPP

Status
Not open for further replies.
Newbie Spellweaver
Joined
Mar 14, 2014
Messages
28
Reaction score
1
Hello guys has anyone a fix for it ? :)
erererer - Source: Allright / Compile ERROR WarZ.sln / AI_Player.CPP - RaGEZONE Forums
 
Try check this:

Code:
[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];

Credits to javaz97: http://forum.ragezone.com/f792/help...rt-identifier-992371-post8012655/#post8012655
 
Upvote 0
ok thank you man. but i commend out this" COMPILE_ASSERT(R3D_ARRAYSIZE(SpawnRatesByState) == PLAYER_NUM_STATES); // 01 work" is it okey to ???
 
Upvote 0
Status
Not open for further replies.
Back