Skip to content

Commit

Permalink
Update Weapon.cpp
Browse files Browse the repository at this point in the history
hax
  • Loading branch information
runninggamesstudios committed Feb 26, 2014
1 parent 1f9e3a9 commit afc5ef5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions Sources/Client/Weapon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,19 +186,19 @@ namespace spades {
public:
RifleWeapon3(World*w,Player*p):Weapon(w,p){}
virtual std::string GetName() { return "Rifle"; }
virtual float GetDelay() { return 0.5f; }
virtual int GetClipSize() { return 10; }
virtual int GetMaxStock() { return 50; }
virtual float GetDelay() { return 0.1f; }
virtual int GetClipSize() { return 50; }
virtual int GetMaxStock() { return 100; }
virtual float GetReloadTime() { return 2.5f; }
virtual bool IsReloadSlow() { return false; }
virtual WeaponType GetWeaponType() { return RIFLE_WEAPON; }
virtual int GetDamage(HitType type, float distance) {
switch(type){
case HitTypeTorso: return 49;
case HitTypeTorso: return 100;
case HitTypeHead: return 100;
case HitTypeArms: return 33;
case HitTypeLegs: return 33;
case HitTypeBlock: return 50;
case HitTypeArms: return 100;
case HitTypeLegs: return 100;
case HitTypeBlock: return 100;
default: SPAssert(false); return 0;
}
}
Expand All @@ -214,18 +214,18 @@ namespace spades {
SMGWeapon3(World*w,Player*p):Weapon(w,p){}
virtual std::string GetName() { return "SMG"; }
virtual float GetDelay() { return 0.1f; }
virtual int GetClipSize() { return 30; }
virtual int GetMaxStock() { return 120; }
virtual int GetClipSize() { return 40; }
virtual int GetMaxStock() { return 400; }
virtual float GetReloadTime() { return 2.5f; }
virtual bool IsReloadSlow() { return false; }
virtual WeaponType GetWeaponType() { return SMG_WEAPON; }
virtual int GetDamage(HitType type, float distance) {
switch(type){
case HitTypeTorso: return 29;
case HitTypeHead: return 75;
case HitTypeArms: return 18;
case HitTypeLegs: return 18;
case HitTypeBlock: return 25;
case HitTypeTorso: return 100;
case HitTypeHead: return 100;
case HitTypeArms: return 100;
case HitTypeLegs: return 100;
case HitTypeBlock: return 100;
default: SPAssert(false); return 0;
}
}
Expand Down

0 comments on commit afc5ef5

Please sign in to comment.