Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class WeaponInfo : MonoBehaviour
- {
- //GUNPLAY PROPERTIES
- public float damage = 1.0f; //Damage per shot
- public float rateOfFire = 1.0f; //Number of shots fired per second
- public float accuracy = 1.0f; //Amount of bullet variance
- public float reloadTime = 2; //Time to reload the weapon
- public int bulletsPerShot = 1; //Number of bullets fired in each shot. Typically varied for shotgun type weapons
- public int clipCapacity = 20; //Number of bullets in a clip
- public float bulletSpeed = 3; //Bullet speed
- public float bulletAcceleration = 0; //Acceleration of the projectile
- public float range = 0; //Distance to travel before expiring
- // PLAYER MODIFICATION PROPERTIES
- public float movementSpeedModifier = 1; //Multiplier that adjusts player movement speed
- public float turnRateModifier = 1; //Mulitplier that adjusts the player turn rate
- // RESOURCE INFORMATION
- public string fireSoundPath = ""; //location of the sound file to play on gun fire
- public string onhitSoundPath = ""; //Location of the sound to play when the gun lands a shot
- public string spritePath = ""; //Location of the sprite path
- }
- public class RangedWeapons : MonoBehaviour {
- public Dictionary<string,WeaponInfo> Ranged_Weapon_Props = new Dictionary<string,WeaponInfo>();
- public WeaponInfo M16Info = new WeaponInfo();
- Ranged_Weapon_Props.Add()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement