Example #1
0
        private void Init()
        {
            _world = idE.RenderSystem.CreateRenderWorld();
            _needsRender.Set(true);

            _lightOrigin.Set(new Vector4(-128.0f, 0.0f, 0.0f, 1.0f));
            _lightColor.Set(new Vector4(1.0f, 1.0f, 1.0f, 1.0f));
            _modelOrigin.Set(Vector4.Zero);
            _viewOffset.Set(new Vector4(-128.0f, 0.0f, 0.0f, 1.0f));
            //_modelAnimation = null;

            _animationLength  = 0;
            _animationEndTime = -1;

            //modelDef = -1;
            _updateAnimation = true;
        }
Example #2
0
 /// <summary>
 /// Loads a map and spawns all the entities.
 /// </summary>
 /// <param name="mapName"></param>
 /// <param name="renderWorld"></param>
 /// <param name="soundWorld"></param>
 /// <param name="isServer"></param>
 /// <param name="isClient"></param>
 /// <param name="randSeed"></param>
 public abstract void InitFromNewMap(string mapName, idRenderWorld renderWorld, idSoundWorld soundWorld, bool isServer, bool isClient, int randSeed);