• Dynamic Melee
    1 replies, posted
I'm trying to think of how I can implement melee weapons that behave like melee weapons in [url=http://store.steampowered.com/app/17570/]Pirates, Vikings, & Knights II[/url]. Since too much ambition isn't a good programming technique, I'm trying to figure out just how to make the act of swinging more dynamic. I don't like just tracing lines forward from my eye position a certain distance. I've thought about tracing a line in world space along the weapon. I don't know how I should go about this though. Does anyone else have any input or examples for this?
There is some lightsaber addon on the workshop that does something like that, code might be a bit confusing to look at though. Does damage if people pass through the blade even when not swinging by constantly tracing the hilt to the end of the blade (I am assuming) looking for an entity to pass through. [url]http://steamcommunity.com/sharedfiles/filedetails/?id=111412589[/url]
Sorry, you need to Log In to post a reply to this thread.