I have created some weapon sound aliases in my user_aliases.csv for my ported gun, the Olympia. I have defined the sounds on the bulletweapon file and in the reload anims, and I have exported the sounds in 48000Hz, but they still won't work. Here is the code from my user_aliases.csv
I am also using a custom template_mod.csv. Here is that:
Here are some screenshots of the weapon in APE:
The modtools console gives me no errors relating to the sounds. Help is greatly appreciated!
You have the sound file in the wrong location. It should be in root/sound_assets/[any folder name you want]/ In your user_aliases.csv file, paste the following on a new line:
In the playsound code, use the sound alias you made.
A good example of what he is talking about is a trigger:
You could also do this:
gsc is based off of C so if you have knowledge in C++ this will be the same if not much easier since there is no form of memory management or anything like that. Basically just simplified C/C++.
I feel so stupid now that the answer is in front of me. Thank you!
And player is just a variable example. You need to define what player is before referring to it...
I'd suggest you re-read the basics
I'm sorry, I'm very new to this. I can't seem to find any tutorials anywhere so I'm just going off of my knowledge of C++. Could you point me in the right direction?
For example, using GetLocalPlayer( 0 ); does not work, the game starts but then shows an error saying the following:
****1 script error(s): "getlocalplayer" with 1 parameters in "scripts/zm/zm_test.gsc" at line 122**** ****Unresolved external "getlocalplayer" with 1 parameters in "scripts/zm/zm_test.gsc"****
Another example is the usage of the variable "player". Treyarch gives this example to disable aim assist on an entity: player DisableAimAssist(); But when putting this exact code in my script, I get this error in the compiler: ^1ERR(6E) scripts/zm/zm_test.gsc (122,0) : Compiler Internal Error : Uninitialized local variable 'player'
Honestly I'm probably just being stupid, but help is appreciated! Maybe I'll be able to figure out (most likely) simple things like this in the future by myself.
As the title says, a lot of the sounds you would normally hear in game are not playing in my map. These sounds include the character burping after drinking a perk bottle, that perk bottle smashing on the ground, the perk jingles, the pack a punch machine sounds (the jingle is there), the character cracking their knuckles when they pack a punch a weapon, and many more.
Thanks. I don't know the first thing about scripting and I've been trying to learn. I have a bit of C++ knowledge and have watched/read a lot of tutorials but can't even figure out how to get text to display when the player spawns.
But I don't know where to put it. I have watched every scripting tutorial I could find and I have a bit of C++ knowledge and still can't figure it out. Any help and advice on how to figure things like this out by myself in the future is appreciated!