Re: [TeeUniverse] Devlog
I guess I don't understand. From the standpoint of skemone who would make a gun I would think that I would make the graphics, the animations, place it were it needs to be when the tee holds it, all the attributes that the gun has, maybe some actual programming to make completely new functionality, rap it all up in a fike/many files that I could post here that people could then use for their mods which are somehow put on a server which sends packets that the client then interprets and presents it on the players screen.......
There is a clear separation between the server side and the client side. The assets file contains only elements that the client needs. The client need a description of how to render the weapon, and how to animated the weapon when the server emit the "fire" signal. Please note that it's the server that send the signal, not the client. The client only send that you want to fire something, but not that the weapon is actually firing something. Technically, the server send the weapon ID and the time corresponding to the last fire signal. For example, the client don't know if the weapon is a melee weapon or not. You need to program something in C++ for that in the server.
As a person who is making a new gun for Teeworlds I don't really care how everything up to presenting an image to the player works. I just want to know how I can save myself some work and make one bullet animation for three guns that could fire the same bullet at three different rates. I really just want to make the shooting animation, the bullet animTion, the reload animation, and maybe the empty animation. And I think it would be best if it were presented as "the same gun". Whether that's true or not does not really matter the the one making the gun. That's what I am saying. Now for modders who want to make a gun that can not do what ModAPI gives them out of the box all of this stuff may be nessisary to know when coding.
To make thing clear: of course, you can reuse any elements. You can reuse assets, and you can reuse code in the server.