public Player(string name,int id) : base() { this.s_name = name; this.id = id; this.weapon = new MD2("Models/sniper.md2","Textures/sniper.jpg"); Camera.Position = World.Map.SpawnPoints[this.id].position; this.f_phi = World.Map.SpawnPoints[this.id].phi; this.f_teta = World.Map.SpawnPoints[this.id].teta; Camera.Update(); tir = new Son("Sons/tir.wav"); shootfreq = 0; nb_munit = munitMax; nb_rech = 10; }
public Dropbox(Type type, Vector3 pos) { if (type == Type.Munition) { skin = new MD2("Models/munition.md2", "Textures/munition.jpg"); } else if (type == Type.Health) { skin = new MD2("Models/health.md2", "Textures/health.jpg"); } this.type = type; teta = 0; reappeartime = 60; currframe = 0; hidden = false; position = pos; Update(); }