This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Data/Base.rte/Devices/Shared/Scripts Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ function Create(self)
2
2
self .grenadeName = self :StringValueExists (" GrenadeName" ) and self :GetStringValue (" GrenadeName" ) or " Frag Grenade" ;
3
3
self .grenadeTech = self :StringValueExists (" GrenadeTech" ) and self :GetStringValue (" GrenadeTech" ) or " Base.rte" ;
4
4
5
- self .isThrownDevice = self :NumberValueExists (" IsThrownDevice " );
6
- local appropriateGrenadeCreateFunction = self .isThrownDevice and CreateThrownDevice or CreateTDExplosive ;
5
+ self .grenadeIsThrownDevice = self :NumberValueExists (" GrenadeIsThrownDevice " );
6
+ local appropriateGrenadeCreateFunction = self .grenadeIsThrownDevice and CreateThrownDevice or CreateTDExplosive ;
7
7
self .grenadeObject = appropriateGrenadeCreateFunction (self .grenadeName , self .grenadeTech );
8
8
9
9
self .bandolierKey = self .grenadeTech .. " /" .. self .PresetName ;
@@ -31,7 +31,7 @@ function OnAttach(self, newParent)
31
31
32
32
attachable :SetStringValue (" GrenadeName" , self .grenadeName );
33
33
attachable :SetStringValue (" GrenadeTech" , self .grenadeTech );
34
- if self .isThrownDevice then
34
+ if self .grenadeIsThrownDevice then
35
35
attachable :SetNumberValue (" GrenadeIsThrownDevice" , 1 );
36
36
end
37
37
attachable :SetNumberValue (" GrenadeMass" , self .grenadeMass );
You can’t perform that action at this time.
0 commit comments