header general

Items Help?

  • NourPrince
  • NourPrince's Avatar Topic Author
  • Chaingunner
  • Chaingunner
More
9 years 4 months ago #1 by NourPrince
Items Help? was created by NourPrince
I was working on a weapon pack called Blaster's Weapon Pack, but i had a problem, i can't make the items float like most of the games. and i mean float like.... Shadow Mavericks mod for example?

I just want an decorate example of this shit... please?.

Please Log in or Create an account to join the conversation.

  • Blue Shadow
  • Blue Shadow's Avatar
  • Administrator
  • Administrator
More
9 years 4 months ago #2 by Blue Shadow
Replied by Blue Shadow on topic Items Help?
I'm not familiar with any of these mods, so I wouldn't know how their items float. What I do know, however, is that you can make things float up and down just like the artifacts from Heretic and Hexen. To do that, you use the FLOATBOB flag.

Please Log in or Create an account to join the conversation.

  • NourPrince
  • NourPrince's Avatar Topic Author
  • Chaingunner
  • Chaingunner
More
9 years 4 months ago #3 by NourPrince
Replied by NourPrince on topic Items Help?
Well, It may not be exactly that i need, but thanks, I just need a floating item like.... jumping then getting down for some milliseconds and then jumping again.. like that

Please Log in or Create an account to join the conversation.

  • ozymandias81
  • ozymandias81's Avatar
  • Pain Elemental
  • Pain Elemental
More
9 years 4 months ago - 9 years 4 months ago #4 by ozymandias81
Replied by ozymandias81 on topic Items Help?
I think that you must use a combination of A_ChangeFlag + sprite frames, like something as seen on Volacubi monsters.
While I don't know if this works, try also to implement FloatSpeed flag to your items: maybe it's the most easy way to solve your problems.
Last edit: 9 years 4 months ago by ozymandias81.

Please Log in or Create an account to join the conversation.

  • MagicWazard
  • MagicWazard's Avatar
  • Moderator
  • Moderator
More
9 years 4 months ago #5 by MagicWazard
Replied by MagicWazard on topic Items Help?
If you mean an item that lies on the ground normally and then "hops" every so often, then I'm thinking you probably want to try ThrustThingZ . Ensure the item is subject to gravity (it should be normally), make sure the Spawn state loops, then have the item call this once in a while in its Spawn state and that should do it.

Please Log in or Create an account to join the conversation.

  • NeuralStunner
  • NeuralStunner's Avatar
  • Administrator
  • Administrator
More
9 years 4 months ago #6 by NeuralStunner
Replied by NeuralStunner on topic Items Help?

MagicWazard wrote: ThrustThingZ

Noooooooo. (Please click the preceding outcry for more information.)

Please Log in or Create an account to join the conversation.

  • MagicWazard
  • MagicWazard's Avatar
  • Moderator
  • Moderator
More
9 years 4 months ago #7 by MagicWazard
Replied by MagicWazard on topic Items Help?

NeuralStunner wrote:

MagicWazard wrote: ThrustThingZ

Noooooooo. (Please click the preceding outcry for more information.)

I'm not sure I get it. I see ThrustThingZ used for this general kind of thing fairly often; what's the advantage to using A_ChangeVelocity instead of ThrustThingZ to start its upward motion? The description on the wiki doesn't give me any obvious answers as to why; it just looks like the former has more parameters to fill in than the latter.

Please Log in or Create an account to join the conversation.

  • ozymandias81
  • ozymandias81's Avatar
  • Pain Elemental
  • Pain Elemental
More
9 years 4 months ago #8 by ozymandias81
Replied by ozymandias81 on topic Items Help?
I go for the ThrustThing stuff. I forgot that useful property, expecially if we had to make such jumpin' thing.

Please Log in or Create an account to join the conversation.

  • zrrion the insect
  • zrrion the insect's Avatar
  • Dark Imp
  • Dark Imp
More
9 years 4 months ago #9 by zrrion the insect
Replied by zrrion the insect on topic Items Help?

MagicWazard wrote: I'm not sure I get it. I see ThrustThingZ used for this general kind of thing fairly often; what's the advantage to using A_ChangeVelocity instead of ThrustThingZ to start its upward motion? The description on the wiki doesn't give me any obvious answers as to why; it just looks like the former has more parameters to fill in than the latter.

A_ChangeVelocity is a new function that was put in to replace things like ThrustThingZ with a more flexible alternative. Because of that, ThrustThingZ is less likely to have continued support since there's a better, newer way to do what it does.

Please Log in or Create an account to join the conversation.