public WaterRifle(float xval, float yval) : base(xval, yval) { this.ammo = 9; this._ammoType = (AmmoType) new AT9mm(); this._type = "gun"; this.graphic = new Sprite("waterGun"); this.center = new Vec2(11f, 7f); this.collisionOffset = new Vec2(-11f, -6f); this.collisionSize = new Vec2(23f, 13f); this._barrelOffsetTL = new Vec2(24f, 6f); this._fireSound = "pistolFire"; this._kickForce = 3f; this._holdOffset = new Vec2(-1f, 0.0f); this.loseAccuracy = 0.1f; this.maxAccuracyLost = 0.6f; this._bio = ""; this._editorName = "Water Blaster"; this.physicsMaterial = PhysicsMaterial.Metal; this._stream = new FluidStream(this.x, this.y, new Vec2(1f, 0.0f), 2f); }
public DemoBlaster(float xval, float yval) : base(xval, yval) { this.ammo = 9; this._ammoType = (AmmoType) new AT9mm(); this._type = "gun"; this.graphic = new Sprite("demoBlaster"); this.center = new Vec2(18f, 8f); this.collisionOffset = new Vec2(-16f, -8f); this.collisionSize = new Vec2(32f, 15f); this._barrelOffsetTL = new Vec2(37f, 7f); this._fireSound = "pistolFire"; this._kickForce = 3f; this._holdOffset = new Vec2(-1f, -4f); this.weight = 8f; this.loseAccuracy = 0.1f; this.maxAccuracyLost = 0.6f; this._bio = ""; this._editorName = "Demo Blaster"; this.physicsMaterial = PhysicsMaterial.Metal; this._stream = new FluidStream(this.x, this.y, new Vec2(1f, 0.0f), 1f); }