09-07-2018, 03:45 PM
Hi, How can I Use the default Weapons and files to make new weapons with different stats and different sounds but still keep the originals safe. And if I can how would I add them into the game to use.
(09-07-2018, 10:28 PM)Lyberta Wrote: [ -> ]You will need to edit QuakeC code. This would involve mostly copy pasting.
Reference: https://gitlab.com/xonotic/xonotic-data....quests/461
(09-29-2018, 09:58 PM)BuddyFriendGuy Wrote: [ -> ]@Molnija, do you mean you just want to change things like the damage points the current weapons make, and their firing sounds, etc.? For that, you don't need to write code.
To replace the sound with your customized sound, look in your Xonotic data folder, and create a directory called sound, then under it a directory called weapons, and put your own weapon sounds there to replace the original ones. You can find the filenames of the weapon sounds here.
For example, if you want to have your own crylink_fire.ogg sound, put your own file in (assuming you are using Linux with default path settings; if you are using other OS, see here):
~/.xonotic/data/sound/weapons/crylink_fire.ogg
Then run Xonotic. Your file will be used instead of the default sound.
To change weapon damages, see this thread.
Hope this helps.
(10-06-2018, 07:28 PM)BuddyFriendGuy Wrote: [ -> ]My post was about how to replace the sound. I thought you already did that, no?
(10-07-2018, 02:36 PM)Lyberta Wrote: [ -> ]Do you want to create completely new weapons?
(10-09-2018, 01:35 PM)Lyberta Wrote: [ -> ]If you want completely new weapons, you will have to copy the QuakeC code of a weapon you want to work from and edit it. Most weapons' source code is located inside qcsrc/common/weapons/weapon directory.
First, you will need to checkout and built a git version of Xonotic.
(10-09-2018, 01:35 PM)Lyberta Wrote: [ -> ]If you want completely new weapons, you will have to copy the QuakeC code of a weapon you want to work from and edit it. Most weapons' source code is located inside qcsrc/common/weapons/weapon directory.
First, you will need to checkout and built a git version of Xonotic.
(10-24-2018, 02:41 PM)Lyberta Wrote: [ -> ]Isn't that link a guide?
(10-26-2018, 09:16 AM)Lyberta Wrote: [ -> ]So if you have a git version you can now try to build it. It won't overwrite your downloaded version but will use the same configuration files as a non-git version. Once you have git version running, you can start editing QC files in data/xonotic-data.pk3dir/qcsrc
(10-27-2018, 05:07 AM)Lyberta Wrote: [ -> ]Then you don't have enough dependencies to build it. It looks like you need to look at that page again and see how to install them.
(10-27-2018, 05:07 AM)Lyberta Wrote: [ -> ]Then you don't have enough dependencies to build it. It looks like you need to look at that page again and see how to install them.
(10-28-2018, 08:35 AM)Lyberta Wrote: [ -> ]Can you post the entire output?
(12-20-2018, 10:01 AM)3agle427 Wrote: [ -> ]I want to do the same thing but can't find the weapons codes. Please HELP!!!!
(01-26-2019, 08:51 PM)BuddyFriendGuy Wrote: [ -> ](12-20-2018, 10:01 AM)3agle427 Wrote: [ -> ]I want to do the same thing but can't find the weapons codes. Please HELP!!!!
https://gitlab.com/xonotic/xonotic-data....ons/weapon
(01-26-2019, 11:22 PM)3agle427 Wrote: [ -> ]Thanks I'll look into it. BTW love your server, me and my friends play on it all the time!
(01-26-2019, 08:51 PM)BuddyFriendGuy Wrote: [ -> ](12-20-2018, 10:01 AM)3agle427 Wrote: [ -> ]I want to do the same thing but can't find the weapons codes. Please HELP!!!!
https://gitlab.com/xonotic/xonotic-data....ons/weapon
(01-27-2019, 04:02 PM)Molnija Wrote: [ -> ](01-26-2019, 08:51 PM)BuddyFriendGuy Wrote: [ -> ](12-20-2018, 10:01 AM)3agle427 Wrote: [ -> ]I want to do the same thing but can't find the weapons codes. Please HELP!!!!
https://gitlab.com/xonotic/xonotic-data....ons/weapon
I got to that part but what do I edit and change to make a new weapon and do I register the weapon somewhere or it just shows up, cause I have no earthly idea.