Ignore:
Timestamp:
2011-06-30 14:19:32 (9 years ago)
Author:
jaollipa
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Weapons.cs

    r2354 r2360  
    1515        AmmoIgnoresGravity = true; 
    1616        InfiniteAmmo = true; 
    17         Power.DefaultValue = 1000; 
     17        Power.DefaultValue = 800; 
    1818        TimeBetweenUse = TimeSpan.FromSeconds(0.4); 
    1919    } 
     
    3636    } 
    3737} 
     38 
     39public class Rifle : Weapon 
     40{ 
     41    public Rifle(double width, double height) 
     42        : base(width, height) 
     43    { 
     44        Image = Game.LoadImage("Images/gaussrifle"); 
     45        AttackSound = Game.LoadSoundEffect("Sounds/assaultrifleshot"); 
     46        AmmoIgnoresGravity = true; 
     47        InfiniteAmmo = true; 
     48        Power.DefaultValue = 1000; 
     49    } 
     50 
     51    protected override PhysicsObject CreateProjectileRifle() 
     52    { 
     53        Projectile proj2 = new Projectile(1, 1.5, Color.DarkGray); 
     54        proj2.CollisionIgnoreGroup = 1; 
     55        return proj2; 
     56    } 
     57 
     58    public int firePower() 
     59    { 
     60        return 15; 
     61    } 
     62 
     63    public string namer() 
     64    { 
     65        return "Rifle"; 
     66    } 
     67} 
Note: See TracChangeset for help on using the changeset viewer.