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)
22 self .grenadeName = self :StringValueExists (" GrenadeName" ) and self :GetStringValue (" GrenadeName" ) or " Frag Grenade" ;
33 self .grenadeTech = self :StringValueExists (" GrenadeTech" ) and self :GetStringValue (" GrenadeTech" ) or " Base.rte" ;
44
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 ;
77 self .grenadeObject = appropriateGrenadeCreateFunction (self .grenadeName , self .grenadeTech );
88
99 self .bandolierKey = self .grenadeTech .. " /" .. self .PresetName ;
@@ -31,7 +31,7 @@ function OnAttach(self, newParent)
3131
3232 attachable :SetStringValue (" GrenadeName" , self .grenadeName );
3333 attachable :SetStringValue (" GrenadeTech" , self .grenadeTech );
34- if self .isThrownDevice then
34+ if self .grenadeIsThrownDevice then
3535 attachable :SetNumberValue (" GrenadeIsThrownDevice" , 1 );
3636 end
3737 attachable :SetNumberValue (" GrenadeMass" , self .grenadeMass );
You can’t perform that action at this time.
0 commit comments