Jump to content

[Figura] xDK's Backpacks & Satchels Pack


xDK
 Share

Recommended Posts

Mzk1M9e.png

 

xDK's Backpacks & Satchels Pack

 

I made some Backpacks and Satchels for Figura.

So I wanted to share it with you guys!

Enjoy :)

 

BpcO1Ll.png

( 3 Big Backpacks / 1 Satchel / 1 Small Backpack )

With Physics:

Y2amcfE.gif    UfV6Bek.gif

And a nice wheel for selecting your backpack:

gmyVyYt.gif

Lua Script:

 

Spoiler
local SwingingPhysics = require("swinging_physics")

local swingOnBody = SwingingPhysics.swingOnBody

SwingingPhysics.swingOnBody(models.model.root.Satchel1.Bag1, 0,{-10,10,-30,30,-30,1})

SwingingPhysics.swingOnBody(models.model.root.Backpack2.Lantern.Chain1, 0,{-30,30,-5,5,-30,30})
SwingingPhysics.swingOnBody(models.model.root.Backpack2.Lantern.Chain1.Chain2, 0, {-5,5,-30,30,-30,30}, models.model.root.Backpack2.Lantern.Chain1, 1)
SwingingPhysics.swingOnBody(models.model.root.Backpack2.Lantern.Chain1.Chain2.Chain3, 0, {-5,5,-30,30,-30,30}, models.model.root.Backpack2.Lantern.Chain1, 2)

-- Backpack handling
local backpacks = {
    Backpack1 = models.model.root.Backpack1,
    Backpack2 = models.model.root.Backpack2,
    Backpack3 = models.model.root.Backpack3,
	Satchel = models.model.root.Satchel1,
	SmallBackpack = models.model.root.SmallBag4
}

local function hideAllBackpacks()
    for _, backpack in pairs(backpacks) do
        backpack:setVisible(false)
    end
end

local function equipBackpack(name)
    hideAllBackpacks()
    if backpacks[name] then
        backpacks[name]:setVisible(true)
    end
end

-- Action wheel setup
local pages = {
    main = action_wheel:newPage()
}

local pageActions = {
    Backpack1 = action_wheel:newAction()
        :title("Equip Backpack 1")
        :item("blue_wool")
        :onLeftClick(function() equipBackpack('Backpack1') end),
    Backpack2 = action_wheel:newAction()
        :title("Equip Backpack 2")
        :item("green_wool")
        :onLeftClick(function() equipBackpack('Backpack2') end),
    Backpack3 = action_wheel:newAction()
        :title("Equip Backpack 3")
        :item("red_wool")
        :onLeftClick(function() equipBackpack('Backpack3') end),
    Satchel = action_wheel:newAction()
        :title("Equip Satchel")
        :item("rabbit_hide")
        :onLeftClick(function() equipBackpack('Satchel') end),
    SmallBackpack = action_wheel:newAction()
        :title("Equip Small Backpack")
        :item("leather")
        :onLeftClick(function() equipBackpack('SmallBackpack') end),
    UnequipAll = action_wheel:newAction()
        :title("Unequip All Backpacks")
        :item("barrier")
        :onLeftClick(hideAllBackpacks)
}

pages.main
    :action(-1, pageActions.Backpack1)
    :action(-1, pageActions.Backpack2)
    :action(-1, pageActions.Backpack3)
	:action(-1, pageActions.SmallBackpack)
	:action(-1, pageActions.Satchel)
    :action(-1, pageActions.UnequipAll)

action_wheel:setPage(pages.main)

--entity init event, used for when the avatar entity is loaded for the first time
function events.entity_init()
  --player functions goes here
	hideAllBackpacks()
	animations:stopAll()
    animations.model.default:play()
end

 

 

Download Figura: https://www.dropbox.com/scl/fi/yx0uwuy2faju7iu4bq9vc/xDK-s-Backpacks_Satchels.rar?rlkey=1wxkxepra9mu0j17zillxerjm&st=zwek05jx&dl=0

Link to post
Share on other sites

god bless this guy's generosity

Link to post
Share on other sites

u deserve the world btw

Link to post
Share on other sites

the G.O.A.T . .  Thank you for this

Link to post
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.



×
×
  • Create New...