Exemplo n.º 1
0
        //-------------------------------------------------------------------------
        void _s2allcEfxFire(List <string> vec_param)
        {
            if (!mScene.isInit())
            {
                return;
            }

            int       index              = 0;
            uint      et_player_rpcid    = uint.Parse(vec_param[++index]);
            int       bullet_vibid       = int.Parse(vec_param[++index]);
            int       bullet_objid       = int.Parse(vec_param[++index]);
            float     level_total_second = float.Parse(vec_param[++index]);
            float     turret_angle       = float.Parse(vec_param[++index]);
            int       turret_rate        = int.Parse(vec_param[++index]);
            float     posX = float.Parse(vec_param[++index]);
            float     posY = float.Parse(vec_param[++index]);
            float     posZ = float.Parse(vec_param[++index]);
            EbVector3 pos  = new EbVector3(posX, posY, posZ);

            CRenderTurret turret = mScene.getTurret(et_player_rpcid);

            if (turret != null)
            {
                turret.s2allcEfxFire(bullet_vibid, bullet_objid, level_total_second, turret_angle, turret_rate, pos);
            }
        }