Help with custom weapons. Created 2 years ago2022-03-06 13:26:01 UTC by boredmodding boredmodding

Created 2 years ago2022-03-06 13:26:01 UTC by boredmodding boredmodding

Posted 2 years ago2022-03-06 13:26:01 UTC Post #346323
So I'm trying to add a new weapon to a mod, rather than replacing models or sound, and I was looking through some forum threads. I wasn't able to find any replies on where the code for pre-existing weapons are so I could copy and modify it for a new one. If you have any helpful answers that would be greatly appreciated.
Posted 2 years ago2022-03-06 15:49:45 UTC Post #346324
You can start by reading here: Weapons Programming - High-Level Overview
Existing weapons are typically located in the dlls folder in the SDK, here's the crowbar for example:
https://github.com/ValveSoftware/halflife/blob/master/dlls/crowbar.cpp

Do keep in mind that implementing new weapons will require a bit of C++ programming experience.
Admer456 Admer456If it ain't broken, don't fox it!
You must be logged in to post a response.