-
Notifications
You must be signed in to change notification settings - Fork 219
Modding weapons
Modding weapons can be done by editing script files and replacing the default model/sound files.
An AngelScript script file loads the required model/sound files, renders models at the correct location, and plays gunshot sounds. There are two scripts for each weapon:
- Scripts/Skin/(Rifle|Shotgun|SMG)/ThirdPerson.as - this one is used for all players but the local player.
- Scripts/Skin/(Rifle|Shotgun|SMG)/View.as - this one is for the first-person weapon.
It's recommended to include the script file in your Mods even when you didn't modify the script.
todo.
You can rewrite whole the sound logics to provide more sound diversity or reduce the number of sound files. However, you also have an option to stick to the original sound logics.
todo: meanings of Fire.wav, FireFar.wav, FireLocal.wav, and FireStereo.wav
This wiki is in the middle of an update process to match the latest changes of OpenSpades 0.1.2
It may contain outdated, incorrect or incomplete information.
Please contact the repository owner (@yvt) via email or ask a question in the issue tracker if there is any obscure information you are looking for that can't be found in neither the source code nor in this wiki.