[ 源码 ] - ZERO资源分享
Open in Telegram
纯粹分享公益资源 投稿联系 @Helsaubw ZERO公益直装 @ZeroCheatNB Only sharing useful sources , if you want to post the sources , please contact @Helsaubw ZERO MOD PUBG : @ZeroCheatNB
Show more1 842
Subscribers
No data24 hours
-27 days
-7930 days
Posts Archive
1 845
Repost from 𝗡𝗧𝗛 SOURCE
pcall(function()
local isMiniCar = _G.AK_GetVal("MINI_CAR") == 1
local scaleVal = (_G.AK_GetVal("MINI_CAR_SCALE") or 40) / 100.0
if scaleVal < 0.2 then scaleVal = 0.2 end
if scaleVal > 1.0 then scaleVal = 1.0 end
local VehicleClass = import("STExtraVehicleBase")
local outVehicles = slua.Array(UEnums.EPropertyClass.Object, import("Actor"))
local allVehicles = UGameplayStatics.GetAllActorsOfClass(uLocalPlayer, VehicleClass, outVehicles)
for i = 0, allVehicles:Num() - 1 do
local veh = allVehicles:Get(i)
if slua.isValid(veh) then
local targetScale = isMiniCar and import("Vector")(scaleVal, scaleVal, scaleVal) or import("Vector")(1.0, 1.0, 1.0)
local currentScaleFlag = isMiniCar and scaleVal or 1.0
if veh.AK_LastScaleFlag ~= currentScaleFlag then
veh.AK_LastScaleFlag = currentScaleFlag
pcall(function()
if type(veh.SetActorScale3D) == "function" then
veh:SetActorScale3D(targetScale)
end
if veh.Mesh and type(veh.Mesh.SetWorldScale3D) == "function" then
veh.Mesh:SetWorldScale3D(targetScale)
elseif veh.RootComponent and type(veh.RootComponent.SetWorldScale3D) == "function" then
veh.RootComponent:SetWorldScale3D(targetScale)
end
end)
end
end
end
end)
MINI CAR / BIG CAR