Coder Social home page Coder Social logo

t_spawn_item about source-x HOT 6 OPEN

xMirroRx avatar xMirroRx commented on May 29, 2024
t_spawn_item

from source-x.

Comments (6)

xwerswoodx avatar xwerswoodx commented on May 29, 2024

I see what you mean, I don't think it's hard thing to fix but the problem is I am not sure if this is a bug or not, because I think they should decay in time and respawn after it's time ticked, but we may add some sort of FLAG in sphere.ini for it.

from source-x.

Jhobean avatar Jhobean commented on May 29, 2024

I see what you mean, I don't think it's hard thing to fix but the problem is I am not sure if this is a bug or not, because I think they should decay in time and respawn after it's time ticked, but we may add some sort of FLAG in sphere.ini for it.

If item is link with spawn point they should not decay.

from source-x.

Jhobean avatar Jhobean commented on May 29, 2024

Optimisation can be done and item generate with spawn point could have timer -1 direct without attr_decay

from source-x.

xwerswoodx avatar xwerswoodx commented on May 29, 2024

I said this because it's intentionally set decayed in source;

pItem->SetDecayTime(g_Cfg.m_iDecay_Item); // it will decay eventually to be replaced later

So I can add some flag for blocking to set decay time if someone doesn't want them to decay.

Or for a quick solution, you can add

On=@Spawn
TIMER=-1

inside the global item event (that defined in sphere.ini).

from source-x.

xMirroRx avatar xMirroRx commented on May 29, 2024

Yes, I found exactly such a solution. Actually, the reason why I posted this here was to understand whether it was a mistake or not, and it was also annoying because when a different item was linked to the items created with t_spawn_item, all of these linked items gave warnings during saving. I wanted to let you know.

from source-x.

Jhobean avatar Jhobean commented on May 29, 2024

Good idea to set timer -1 on spawn

personnaly I did that (Remove attr Decay and set to -1 automatic after timer)

ON=@TIMER
ATTR &=~ 02
RETURN 1

If we want avoid changing some behavior, maybe we should modify nothing? Or set an ini switch...

from source-x.

Related Issues (20)

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.