public Fish(Subnautica gameInstance, string name, List <TgcMesh> meshes, TGCVector3 spawnLocation) : base(gameInstance, name, meshes, 10, 50f) { CollisionStatus = Utils.ECollisionStatus.NOT_COLLISIONABLE; Position = spawnLocation; size = MathExtended.GetRandomNumberBetween(3, 20); scale = TGCVector3.One * size; // LIVING_NPC dropsProbability[ItemDatabase.Instance.Generate(EItemID.RAW_FISH)] = 100; dropsProbability[ItemDatabase.Instance.Generate(EItemID.FISH_SCALE)] = 50; }
public Ship(Subnautica gameInstance, string name, List <TgcMesh> meshes) : base(gameInstance, name, meshes) { Position = new TGCVector3(400, 60, -900); // seteo la posicion del barco scale *= 4; rotation = new TGCVector3(0, FastMath.PI_HALF, 0); TGCMatrix translation = TGCMatrix.Translation(Position); TGCMatrix scaling = TGCMatrix.Scaling(scale); TGCMatrix rot = TGCMatrix.RotationYawPitchRoll(rotation.Y, rotation.X, rotation.Z); Transform = rot * scaling * translation; }
public Shark(Subnautica gameInstace, string name, List <TgcMesh> meshes, TGCVector3 spawnLocation) : base(gameInstace, name, meshes, 100, 200f) { InitialLookDirection = new TGCVector3(-1, 0, 0); LookDirection = InitialLookDirection; lastRoamingLookDirection = InitialLookDirection; Position = spawnLocation; Transform = TGCMatrix.Translation(Position); dropsProbability[ItemDatabase.Instance.Generate(EItemID.RAW_SHARK)] = 100; dropsProbability[ItemDatabase.Instance.Generate(EItemID.SHARK_TOOTH)] = 100; dropsProbability[ItemDatabase.Instance.Generate(EItemID.METAL_SCRAP)] = 30; }
public GameObject(Subnautica gameInstance, string name, List <TgcMesh> meshes) { GameInstance = gameInstance; Name = name; Meshes = meshes; foreach (var mesh in Meshes) { GameInstance.loadEffectWithFogValues(mesh.Effect); mesh.Technique = "BlinnPhongTextured"; } LookDirection = InitialLookDirection; }
public StaticObject(Subnautica gameInstance, string name, List <TgcMesh> meshes, TGCVector3 position, TGCVector3 scale, TGCVector3 rotation) : base(gameInstance, name, meshes) { CollisionStatus = Utils.ECollisionStatus.NOT_COLLISIONABLE; Position = position; this.rotation = rotation; this.scale = scale; TGCMatrix scaleTransform = TGCMatrix.Scaling(this.scale); TGCMatrix translation = TGCMatrix.Translation(Position); TGCMatrix rotationTransform = TGCMatrix.RotationYawPitchRoll(this.rotation.Y, this.rotation.X, this.rotation.Z); Transform = scaleTransform * rotationTransform * translation; }
public StaticObject(Subnautica gameInstance, string name, List <TgcMesh> meshes, TGCVector3 position) : this(gameInstance, name, meshes, position, TGCVector3.One, TGCVector3.Empty) { }
public StaticObject(Subnautica gameInstance, string name, List <TgcMesh> meshes, TGCVector3 position, float scale, TGCVector3 rotation) : this(gameInstance, name, meshes, position, TGCVector3.One *scale, rotation) { }
public SueloDelMar(Subnautica gameInstance, string name, TGCVector3 centreP, string heightMap, string texture, string effect, float scaleXZ, float scaleY) : base(gameInstance, name, centreP, heightMap, texture, effect, scaleXZ, scaleY) { }
public Collectable(Subnautica gameInstance, string name, List <TgcMesh> meshes, TGCVector3 position, EItemID resourceID) : this(gameInstance, name, meshes, position, TGCVector3.One, TGCVector3.Empty, resourceID) { }
public Collectable(Subnautica gameInstance, string name, List <TgcMesh> meshes, TGCVector3 position, TGCVector3 scale, TGCVector3 rotation, EItemID resourceID) : base(gameInstance, name, meshes, position, scale, rotation) { this.resourceID = resourceID; }
public LivingNPC(Subnautica gameInstance, string name, List <TgcMesh> meshes, int maxHealth) : base(gameInstance, name, meshes) { this.maxHealth = maxHealth; health = maxHealth; }
public Roamer(Subnautica gameInstance, string name, List <TgcMesh> meshes, int maxHealth, float roamingSpeed) : base(gameInstance, name, meshes, maxHealth) { this.roamingSpeed = roamingSpeed; }