public MP5Imbalance(float xval, float yval) : base(xval, yval) { ammo = MaxAmmo; _ammoType = new ATMissile(); _ammoType.penetration = 2f; _ammoType.range = 200f; _ammoType.accuracy = 1f; _type = "gun"; _editorName = "MP5"; graphic = new SpriteMap(DuckUtils.GetAsset("weapons/mp5_imba.png"), 24, 14); center = new Vec2(8f, 4f); collisionOffset = new Vec2(-8f, -4f); collisionSize = new Vec2(20f, 10f); _barrelOffsetTL = new Vec2(23f, 5f); _fireSound = DuckUtils.GetAsset("sounds/mp5_imba_shot.wav"); _fullAuto = true; _fireWait = 0f; _kickForce = 0.4f; _holdOffset = new Vec2(-5f, -3f); storeSound = new NetSoundEffect(DuckUtils.GetAsset("sounds/mp5_imba_store.wav")); SoundBinding = new NetSoundBinding("storeSound"); }
public AK47(float xval, float yval) : base(xval, yval) { ammo = 30; _ammoType = new ATMissile(); _ammoType.range = 200f; _ammoType.accuracy = 0.85f; _ammoType.penetration = 2f; _type = "gun"; graphic = new Sprite("contents/AKBazooka", 0f, 0f); center = new Vec2(16f, 15f); collisionOffset = new Vec2(-8f, -3f); collisionSize = new Vec2(18f, 10f); _barrelOffsetTL = new Vec2(32f, 14f); _fireSound = "deepMachineGun2"; _fullAuto = true; _fireWait = 1.2f; _kickForce = 3.5f; loseAccuracy = 0.2f; maxAccuracyLost = 0.8f; }