stujones11 / shooter

First Person Shooter Mod for Minetest
Other
30 stars 18 forks source link

Coloured arrows #2

Closed lightonflux closed 9 years ago

lightonflux commented 9 years ago

The crossbow is really great.

It would be great if you could use dye to colour them. So you can easily differentiate between players arrows in a shooting match.

Recipe: dye + arrow

stujones11 commented 9 years ago

Nice idea! I only need to figure a way to do that without adding a whole bunch of inventory and uv textures. I am currently looking at the recently included [mask & [colorize modifiers to see if there may be a more efficient way to do it. In the meantime, if anyone else wants to code it then I would be more than happy to merge it ;-)

HybridDog commented 9 years ago

if anyone else wants to code it then I would be more than happy to merge it ;-)

There l let the mod use the white wool texture for the white bow: https://github.com/stujones11/shooter/pull/3/files l didn't test it with other colours yet.

stujones11 commented 9 years ago

There l let the mod use the white wool texture for the white bow:

I have added your preparations and it seems to work just fine, although I did have some trouble with the arrow uv image (not related to your commit) but for whatever reason it was resolved by removing the 'test' images from inside the models directory. I need to look into that one more but for now it works.

Now I just need to add some registration loops and bring it all together :-)

thank you once again for your help.

stujones11 commented 9 years ago

Coloured arrows have now been added, you can make them with the suggested recipe (dye + arrow) Selection is pretty random in that the crossbow will load the first color it finds in the main inventory based on the order of the dye.basecolors table. However, I can't see that being much of a problem for the suggested game mode.

Please let me know how you find it so I can close this issue.

lightonflux commented 9 years ago

They are beautiful. But it would be great if the weapon would prefer arrows that are right to the weapon in next slot. Like other bow mods do.

BTW: Are the arrows only visible to the player that shoot them on a multiplayer server?

HybridDog commented 9 years ago

But it would be great if the weapon would prefer arrows that are right to the weapon in next slot. Like other bow mods do.

But please take arrows from other places of the inventory as second choice.

BTW: Are the arrows only visible to the player that shoot them on a multiplayer server?

l think they're visible for everyone who can see entities.

lightonflux commented 9 years ago

But please take arrows from other places of the inventory

This is the current behaviour. Preferring the right slot would be additional but not replace the functionality. Or the preference could go from upper left to to the right. So you don't have to rearm to change the preference. But this would only be useful if someone uses the arrows from the mods and give them special action (digging, fire, etc).

BTW: i like the precision:

stack of arrows

stujones11 commented 9 years ago

Thanks, I will look into making the bow give preference to the right inventory slot when I get a chance to see how the other mods do it.

That's another issure though so I will close this one now.