Guest User

windgenerator | stellar blade by @frows4k

a guest
Sep 2nd, 2026
156
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.91 KB | Source Code | 0 0
  1. print("[windgenerator] mod caricata @frows4k\n")
  2.  
  3. local function SetWind(enabled)
  4.     local eve = FindFirstOf("CH_P_EVE_01_Blueprint_C")
  5.     if not eve or not eve:IsValid() then
  6.         print("[windgenerator] non trovo eve, rip\n")
  7.         return
  8.     end
  9.  
  10.     local direction = enabled
  11.         and { X = -1.0, Y = 0.0, Z = 0.0 }
  12.         or { X = 0.0, Y = 0.0, Z = 0.0 }
  13.  
  14.     local characterOk = pcall(function()
  15.         eve:SetClothAdditiveWindDirection(direction)
  16.     end)
  17.  
  18.     local changed = 0
  19.     local meshes = FindAllOf("SkeletalMeshComponent")
  20.     if meshes then
  21.         for _, mesh in pairs(meshes) do
  22.             if mesh and mesh:IsValid()
  23.                 and string.find(tostring(mesh:GetFullName()), "CH_P_EVE", 1, true) then
  24.  
  25.                 local ok = pcall(function()
  26.                     mesh:SetSBKawaiiPhysicsForce(direction, enabled and 500.0 or 0.0)
  27.                 end)
  28.  
  29.                 if not ok then
  30.                     ok = pcall(function()
  31.                         mesh:CallFunction(
  32.                             "SetSBKawaiiPhysicsForce",
  33.                             direction,
  34.                             enabled and 500.0 or 0.0
  35.                         )
  36.                     end)
  37.                 end
  38.  
  39.                 if ok then changed = changed + 1 end
  40.             end
  41.         end
  42.     end
  43.  
  44.     print("[windgenerator] Wind " .. (enabled and "ON" or "OFF")
  45.         .. " | Character=" .. tostring(characterOk)
  46.         .. " | Meshes=" .. tostring(changed) .. "\n")
  47. end
  48.  
  49. RegisterULocalPlayerExecPreHook(function(Context, InWorld, Command, Ar)
  50.     local cmd = tostring(Command):lower()
  51.  
  52.     if cmd == "windon" then
  53.         SetWind(true)
  54.         return true, false
  55.     end
  56.  
  57.     if cmd == "windoff" then
  58.         SetWind(false)
  59.         return true, false
  60.     end
  61.  
  62.     return nil, true
  63. end)
  64.  
  65. print("[windgenerator] To enable win, simply type these commands: windon | windoff\n")
  66.  
Advertisement
Comments
  • frows4k
    55 days
    # text 0.15 KB | 0 0
    1. Instructions:
    2.  
    3. place it in ue4ss/Mods/windgenerator and call it "main.lua"
    4. then open ue4ss/Mods/mods.txt
    5.  
    6. add
    7.  
    8. windgenerator : 1
    9.  
    10. installed
    11.  
    12.  
Add Comment
Please, Sign In to add comment