Skip to content

Commit

Permalink
Removed weapon parameter Accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
ArKaNeMaN committed Mar 13, 2021
1 parent 84339ce commit 99ec6bc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
11 changes: 0 additions & 11 deletions CustomWeaponsAPI.sma
Expand Up @@ -228,7 +228,6 @@ public Native_FindWeapon(){
}
case CWAPI_WD_MaxWalkSpeed,
CWAPI_WD_DamageMult,
CWAPI_WD_Accuracy,
CWAPI_WD_DeployTime,
CWAPI_WD_ReloadTime,
CWAPI_WD_PrimaryAttackRate,
Expand Down Expand Up @@ -507,9 +506,6 @@ public Hook_DefaultDeploy(const ItemId, szViewModel[], szWeaponModel[], iAnim, s
if(Data[CWAPI_WD_DeployTime] >= 0.0)
SetWeaponNextAttack(ItemId, Data[CWAPI_WD_DeployTime]);

if(Data[CWAPI_WD_Accuracy] >= 0.0)
set_member(ItemId, m_Weapon_flAccuracy, Data[CWAPI_WD_Accuracy]);

CallWeaponEvent(GetWeapId(ItemId), CWAPI_WE_Deploy, ItemId);
}

Expand Down Expand Up @@ -581,9 +577,6 @@ public Hook_PlayerItemDeploy(const ItemId){
if(Data[CWAPI_WD_DeployTime] >= 0.0)
SetWeaponNextAttack(ItemId, Data[CWAPI_WD_DeployTime]);

if(Data[CWAPI_WD_Accuracy] >= 0.0)
set_member(ItemId, m_Weapon_flAccuracy, Data[CWAPI_WD_Accuracy]);

CallWeaponEvent(GetWeapId(ItemId), CWAPI_WE_Deploy, ItemId);

return;
Expand Down Expand Up @@ -1009,10 +1002,6 @@ LoadWeapons(){
Data[CWAPI_WD_Damage] = json_object_get_real(Item, "Damage");
else Data[CWAPI_WD_Damage] = -1.0;

if(json_object_has_value(Item, "Accuracy", JSONNumber))
Data[CWAPI_WD_Accuracy] = json_object_get_real(Item, "Accuracy");
else Data[CWAPI_WD_Accuracy] = -1.0;

if(json_object_has_value(Item, "DeployTime", JSONNumber))
Data[CWAPI_WD_DeployTime] = json_object_get_real(Item, "DeployTime");
else Data[CWAPI_WD_DeployTime] = -1.0;
Expand Down
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -40,7 +40,6 @@ API для создания кастомного оружия
"MaxAmmo": [Int] Общее кол-во патронов,
"DamageMult": [Float] Множитель урона,
"Damage": [Float] Базовый урон,
"Accuracy": [Float] Точность (До конца не уверен работает ли),
"Weight": [Int] Вес оружия,
"Price": [Int] Цена оружия (Если не указать то купить нельзя будет),
"DeployTime": [Float] Длительность доставания оружия,
Expand Down

0 comments on commit 99ec6bc

Please sign in to comment.