Product Chat / [SOLVED] Dryfire sound for standard weapons..how to?

Author
Message
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 14th Sep 2019 00:26
hi i would to ask how we ca nset the sryfire sound for the standard gg weapons since i saw thre is the dryfire sound but sound wont play when weapon is out of ammo.. i get a look at the guspec of the enanched weapon pack i own and i saw in that gusped there is setted even a dryfire anim so i create a dryfire voice in the standard weapon gunspec and added to it the frames for fire anim but wont work...

i know i maybe did some bad things but come back to gg form few days and reallywant to get my hands dirty with it.. LOL
PC Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA NVDIA 1660GTX 6GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB

The author of this post has marked a post as an answer.

Go to answer
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 14th Sep 2019 00:33 Edited at: 14th Sep 2019 00:50
Quote: "hi i would to ask how we ca nset the sryfire sound for the standard gg weapons"

All weapons have allready dry fire sounds
Quote: " dryfire voice in the standard weapon gunspec and added to it the frames for fire anim but wont work..."

Frames are only 4 the animations, not 4 sounds
Do not edit them or u got problems with your weapon working
The sound of the dryfire should be in
gamecore\guns\(NameOfTheModelPackYouBought)
use wav format cuz ogg can couse errors
The gunspec should be like this

If u want to change the dryfire sound just replace your sound with the original dryfire.wav, if your sound has another name u have to edit the line sound3 = dryfire.wav and replace dryfire.wav with (YourSoundName).wav
Got it?
PM
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 14th Sep 2019 01:12
yes all correct mate.. i tried this with my standard shotgun andthe dryfiresound was there yet , i tested the sound and it work out of the box
but wont play when weapon is out of ammo ..and the same is for all other standard weapons.. what i missed?'
here the standard shotfun gunspec.txt
PC Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA NVDIA 1660GTX 6GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 14th Sep 2019 01:26 Edited at: 14th Sep 2019 01:33
Sorry misunderstood u.Okay i see whre the problem is, seems like the standart gg weapons havent dryfire animations so the sound doesnt play.I not noticed that while iam dont use standart weapons at all.U can try this, add a line under putaway called dryfire and set the frame at 30,100, like this

U seted the anim fo dryfire the same as 4 start fire thats why the sound doesnt pay, u have to set it from idle.
PM
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 14th Sep 2019 01:35 Edited at: 14th Sep 2019 01:38
This post has been marked by the post author as the answer.
yes i made the same thing you wrote but set the frame for dryfire to 181,204(the complete fire anim) but strangely didnt play sound
with dryfire = 30,100 sound play but anim doesnt work well
edit dryfire = 181,204 do the tirck ... i didnt know that i need t oclose gg and restart to modifies take effect
PC Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA NVDIA 1660GTX 6GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 14th Sep 2019 01:41
so for all noobs like me

to add dryfire sound to stock weapons we need to add the "dryfire" filed under animations list in the gunspec.txt and specify the frames for the current weapon "fire" frames
PC Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA NVDIA 1660GTX 6GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 14th Sep 2019 01:42 Edited at: 14th Sep 2019 01:46
Glad 2 hear u find it out, btw why do u set the fire anim 4 dryfire?Makes it sense?The guy shoots without ammo and instead of fire sound there is a empty magazine sound?Know what i mean?Maybe on a pistol it doesnt matter but on the shotgun it looks weird cuz there is an reload animation after each shot.
PM
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 14th Sep 2019 01:55
Quote: "Glad 2 hear u find it out, btw why do u set the fire anim 4 dryfire?Makes it sense?The guy shoots without ammo and instead of fire sound there is a empty magazine sound?Know what i mean?Maybe on a pistol it doesnt matter but on the shotgun it looks weird cuz there is an reload animation after each shot."


sincerly i like it LOL

btw i saw you asked in the past about drop weapon.. is there a way after reached the maximum weapon limint to drop weapon insted delete it on swap.. or better a script to can direcly drop current equipped weapon?
PC Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA NVDIA 1660GTX 6GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 14th Sep 2019 02:06 Edited at: 14th Sep 2019 02:11
Sadly no, thats why iam asking 4 it even on github.Looks very unrealistic when the weapon just dissapear by pressing T, like a magic trick and its very impractical.Iam sure there is a way 2 do that by a script but iam not do scripting myself.We have a static mg script(look on my mg nest thread) that allow take the weapon and by pressing a key release it so i guess the drop weapon script would be similar.It would be even fine if we had a command who just deletes the weapon by pressing key, 4 right know we have only one who deletes all player weapons.
PM
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 14th Sep 2019 07:38
yes i saw that thread too and based on that asked for weapon drop since i supposed that since the system vreated by AmenMoses if i remember correctly could soleve the weapon drop irrealistic issue
PC Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA NVDIA 1660GTX 6GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 14th Sep 2019 08:04
I saw u had contact with c#?Lua is similar from what i can see(or not?)U could try 2 script something self.
Iam not gonna ask amenmoses right now cuz i know he and anyone alse scripter doesnt like questions like "can u make a script 4 me"?
PM
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 14th Sep 2019 08:39
Quote: "I saw u had contact with c#?Lua is similar from what i can see(or not?)U could try 2 script something self.
Iam not gonna ask amenmoses right now cuz i know he and anyone alse scripter doesnt like questions like "can u make a script 4 me"?"

yes i dont want to disturb Amen too LOL

Yes know a bit of c# and i'm capable to program with it but I'm learning lua right now and sincerly i dont think it's similar to c# btw it's relatively easy..so maybe in future something i could be able to produce LOL

btw isnt there a more efficent method to exit and reload GG to made modify take effect...deleting .dbo files doenst work for me
PC Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA NVDIA 1660GTX 6GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 14th Sep 2019 08:47
Quote: "btw isnt there a more efficent method to exit and reload GG to made modify take effect...deleting .dbo files doenst work for me"

PM
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 14th Sep 2019 12:17
sure.. stupid question... GG cant ddo the things easy.. LOL
PC Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA NVDIA 1660GTX 6GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM

Login to post a reply

Server time is: 2024-11-23 21:46:41
Your offset time is: 2024-11-23 21:46:41