View previous topic :: View next topic |
Author |
Message |
hawkins83
Joined: 03 Sep 2006 Posts: 28
|
Posted: Sun Sep 03, 2006 6:41 am Post subject: Need help |
|
|
Im trying to make the laser hook. I copied all the stuff in but when i make a game the hook doesnt work. I binded it to a unused key and it doesnt work. Someone help plz |
|
Back to top |
|
 |
SkinnedAlive
Joined: 25 Feb 2005 Posts: 65
|
Posted: Sun Sep 03, 2006 9:09 am Post subject: |
|
|
How does it not work exactly? Does it crash? Does it not compile? Help us to help you. |
|
Back to top |
|
 |
hawkins83
Joined: 03 Sep 2006 Posts: 28
|
Posted: Sun Sep 03, 2006 1:13 pm Post subject: |
|
|
Ok the hook works in game same with the flashlight. But the sound for the hook doesnt work. Its saids sv_startsound "grfire.wav" not precacheed. What do i need to do |
|
Back to top |
|
 |
SkinnedAlive
Joined: 25 Feb 2005 Posts: 65
|
Posted: Sun Sep 03, 2006 2:49 pm Post subject: |
|
|
You need to add the lines...
Code: | precache_sound("hook/grfire.wav");
precache_sound("hook/grhit.wav");
precache_sound("hook/grreset.wav");
precache_model("progs/null.spr"); |
At the end of the W_Precache function right at the top of weapons.qc. |
|
Back to top |
|
 |
hawkins83
Joined: 03 Sep 2006 Posts: 28
|
Posted: Sun Sep 03, 2006 6:07 pm Post subject: |
|
|
I did that. It doesnt work. ill try it once i get home tonight |
|
Back to top |
|
 |
SkinnedAlive
Joined: 25 Feb 2005 Posts: 65
|
Posted: Sun Sep 03, 2006 8:11 pm Post subject: |
|
|
That should solve the problem. Are the wav files in the right directory? They should be in ..quake/yourmod/hook. |
|
Back to top |
|
 |
hawkins83
Joined: 03 Sep 2006 Posts: 28
|
Posted: Sun Sep 03, 2006 10:17 pm Post subject: |
|
|
Nope didnt fix it. It said to put the files in yourmod/sound/hook/
thats what i did. But it saids grreset.wav not precacheed. |
|
Back to top |
|
 |
hawkins83
Joined: 03 Sep 2006 Posts: 28
|
|
Back to top |
|
 |
hawkins83
Joined: 03 Sep 2006 Posts: 28
|
Posted: Sun Sep 03, 2006 10:40 pm Post subject: |
|
|
NVM i found the problem. The code for the tuthook.qc was messed up. it had grapple/grreset.wav and stuff it should of been hook.sound.wav |
|
Back to top |
|
 |
|