private static Dictionary <string, string> KillIcon(WeaponId Index) => new Dictionary <string, string>() { ["knife"] = KnifeIcon[Index], ["knife_t"] = KnifeIcon[Index] };
public override int GetHashCode() { int num = 1; if (EntityId != 0) { num ^= EntityId.GetHashCode(); } if (EntityType != 0) { num ^= EntityType.GetHashCode(); } if (name_ != null) { num ^= Name.GetHashCode(); } if (defId_.HasValue) { num ^= DefId.GetHashCode(); } if (weaponId_.HasValue) { num ^= WeaponId.GetHashCode(); } if (genderId_.HasValue) { num ^= GenderId.GetHashCode(); } if (playerIndexInFight_.HasValue) { num ^= PlayerIndexInFight.GetHashCode(); } if (ownerId_.HasValue) { num ^= OwnerId.GetHashCode(); } if (teamId_.HasValue) { num ^= TeamId.GetHashCode(); } if (level_.HasValue) { num ^= Level.GetHashCode(); } num ^= ((object)properties_).GetHashCode(); if (position_ != null) { num ^= Position.GetHashCode(); } if (direction_.HasValue) { num ^= Direction.GetHashCode(); } num ^= ((object)Caracs).GetHashCode(); if (customSkin_ != null) { num ^= CustomSkin.GetHashCode(); } if (actionDoneThisTurn_.HasValue) { num ^= ActionDoneThisTurn.GetHashCode(); } if (_unknownFields != null) { num ^= ((object)_unknownFields).GetHashCode(); } return(num); }
public static uint GetWeaponId(this WeaponId WeaponId) { switch (WeaponId) { default: return(0); case WeaponId.Glock: return(1); case WeaponId.Hkp2000: return(2); case WeaponId.Usp_s: return(3); case WeaponId.Elite: return(4); case WeaponId.P250: return(5); case WeaponId.Tec9: return(6); case WeaponId.Fiveseven: return(7); case WeaponId.Cz75a: return(8); case WeaponId.Deagle: return(9); case WeaponId.Revolver: return(10); case WeaponId.Nova: return(11); case WeaponId.Xm1014: return(12); case WeaponId.Sawedoff: return(13); case WeaponId.Mag7: return(14); case WeaponId.M249: return(15); case WeaponId.Negev: return(16); case WeaponId.Mac10: return(17); case WeaponId.Mp9: return(18); case WeaponId.Mp7: return(19); case WeaponId.Mp5sd: return(20); case WeaponId.Ump45: return(21); case WeaponId.P90: return(22); case WeaponId.Bizon: return(23); case WeaponId.GalilAr: return(24); case WeaponId.Famas: return(25); case WeaponId.Ak47: return(26); case WeaponId.M4A1: return(27); case WeaponId.M4a1_s: return(28); case WeaponId.Ssg08: return(29); case WeaponId.Sg553: return(30); case WeaponId.Aug: return(31); case WeaponId.Awp: return(32); case WeaponId.G3SG1: return(33); case WeaponId.Scar20: return(34); case WeaponId.Knife_CT: return(35); case WeaponId.Knife_T: return(35); case WeaponId.Karambit: return(35); case WeaponId.Gut: return(35); case WeaponId.Flip: return(35); case WeaponId.Bayonet: return(35); case WeaponId.M9Bayonet: return(35); case WeaponId.Huntsman: return(35); case WeaponId.Butterfly: return(35); case WeaponId.Falchion: return(35); case WeaponId.Daggers: return(35); case WeaponId.Bowie: return(35); case WeaponId.Talon: return(35); case WeaponId.Stiletto: return(35); case WeaponId.Navaja: return(35); case WeaponId.Ursus: return(35); case WeaponId.CSS: return(35); case WeaponId.Cord: return(35); case WeaponId.Canis: return(35); case WeaponId.OutDoor: return(35); case WeaponId.Skeleton: return(35); } }
public void ForceWeapon(WeaponId type) { var weapon = new WeaponType(null, type); GTAUtils.SetPlayerWeaponSlot(weapon.Slot); }
public void AddWeapon(WeaponId weaponId) { AddWeapon(WeaponRuntime.Parse(WeaponManager.Get(weaponId.ToString()))); }