Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5.  
  6.  
  7. public class WeaponInfo : MonoBehaviour
  8. {
  9.  
  10. //GUNPLAY PROPERTIES
  11. public float damage = 1.0f; //Damage per shot
  12. public float rateOfFire = 1.0f; //Number of shots fired per second
  13. public float accuracy = 1.0f; //Amount of bullet variance
  14. public float reloadTime = 2; //Time to reload the weapon
  15. public int bulletsPerShot = 1; //Number of bullets fired in each shot. Typically varied for shotgun type weapons
  16. public int clipCapacity = 20; //Number of bullets in a clip
  17. public float bulletSpeed = 3; //Bullet speed
  18. public float bulletAcceleration = 0; //Acceleration of the projectile
  19. public float range = 0; //Distance to travel before expiring
  20.  
  21.  
  22. // PLAYER MODIFICATION PROPERTIES
  23.  
  24. public float movementSpeedModifier = 1; //Multiplier that adjusts player movement speed
  25. public float turnRateModifier = 1; //Mulitplier that adjusts the player turn rate
  26.  
  27.  
  28. // RESOURCE INFORMATION
  29.  
  30.  
  31. public string fireSoundPath = ""; //location of the sound file to play on gun fire
  32. public string onhitSoundPath = ""; //Location of the sound to play when the gun lands a shot
  33. public string spritePath = ""; //Location of the sprite path
  34.  
  35. }
  36.  
  37. public class RangedWeapons : MonoBehaviour {
  38.  
  39.  
  40. public Dictionary<string,WeaponInfo> Ranged_Weapon_Props = new Dictionary<string,WeaponInfo>();
  41.  
  42.  
  43. public WeaponInfo M16Info = new WeaponInfo();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement