DoubleATam
she/her
I'm a bit of a newcomer to this game, but I have past experience with programming and Lua, and i've already been working on some mods in the past month (following the wiki, forum posts, source code, and reusable mods). But I still don't really understand how to give a player a separate but like, seamlessly integrated hitbox? Such as for a melee attack. I didn't find anything in the base game that actually did that (and something like Amy's heart projectiles isn't a great substitute, either.)
I've barely managed to make an invisible/intangible object follow you as a sort of hitbox, but only kinda hackily, using P_TeleportMove in the player thinker, and it ends up one frame delayed behind the player (logically because the player only updates the position afterward), so I don't think that's correct.
Then again, I also don't have a good grasp on how to make a new object or projectile at all. I didn't find a good guide for it, and all the necessary information's currently scattered. (ADHD makes it really difficult to follow unclear instructions or finish complicated things. But I also tend to save asking for help for last...)
I've barely managed to make an invisible/intangible object follow you as a sort of hitbox, but only kinda hackily, using P_TeleportMove in the player thinker, and it ends up one frame delayed behind the player (logically because the player only updates the position afterward), so I don't think that's correct.
Then again, I also don't have a good grasp on how to make a new object or projectile at all. I didn't find a good guide for it, and all the necessary information's currently scattered. (ADHD makes it really difficult to follow unclear instructions or finish complicated things. But I also tend to save asking for help for last...)