Giter VIP home page Giter VIP logo

xitemlib's People

Contributors

ashnal avatar jugadorxei avatar minenice55 avatar xretrostationx avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

xitemlib's Issues

Override K_GetItemPatch

xItemLib should override SRB2Kart's existing K_GetItemPatch function.
This will allow addons that use this function to access item hud graphics to work with additional items without modification.
Modification of these addons would still be required to use xItemLib's additional item graphics features (eg. skin colour remapping.)

Handle Ashnal's limited pickups from its Floating Item Spawner script

Filling this as an issue instead of a PR since it should be simple enough to put into the library proper.

Due to a bug from Ash's script, its TouchSpecial hook is guaranteed to load last meaning that it will never limit any pickups if xItem is loaded.

This snippet can be added in floatingXItemSpecial just before the player is given the item to remedy this:

-- Only kick in if floating item spawner is loaded + item is from spawner.
-- The bug we're trying to fix is from pickup limiting, don't run this if not the case.
-- Don't run the collision hook if we'd be picking more than we have.
if floatingitemspawner and s.spawnedbyspawner and s.limitpickup then
	if kartstuff[k_itemamount] >= thing.movecount then return true end
	s.movecount = $ - kartstuff[k_itemamount] -- Adjust to get the desired amount from the limited amount of pickups.
end

This should limit pickups properly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.