Forum

Need help

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Need help

Postby hawkins83 » Sun Sep 03, 2006 6:41 am

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
hawkins83
 
Posts: 28
Joined: Sun Sep 03, 2006 6:39 am

Postby SkinnedAlive » Sun Sep 03, 2006 9:09 am

How does it not work exactly? Does it crash? Does it not compile? Help us to help you.
SkinnedAlive
 
Posts: 65
Joined: Fri Feb 25, 2005 5:03 pm

Postby hawkins83 » Sun Sep 03, 2006 1:13 pm

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
hawkins83
 
Posts: 28
Joined: Sun Sep 03, 2006 6:39 am

Postby SkinnedAlive » Sun Sep 03, 2006 2:49 pm

You need to add the lines...

Code: Select all
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.
SkinnedAlive
 
Posts: 65
Joined: Fri Feb 25, 2005 5:03 pm

Postby hawkins83 » Sun Sep 03, 2006 6:07 pm

I did that. It doesnt work. ill try it once i get home tonight
hawkins83
 
Posts: 28
Joined: Sun Sep 03, 2006 6:39 am

Postby SkinnedAlive » Sun Sep 03, 2006 8:11 pm

That should solve the problem. Are the wav files in the right directory? They should be in ..quake/yourmod/hook.
SkinnedAlive
 
Posts: 65
Joined: Fri Feb 25, 2005 5:03 pm

Postby hawkins83 » Sun Sep 03, 2006 10:17 pm

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.
hawkins83
 
Posts: 28
Joined: Sun Sep 03, 2006 6:39 am

Postby hawkins83 » Sun Sep 03, 2006 10:20 pm

here is a image of the text file for weapons
http://img379.imageshack.us/img379/3352/weaponsvs1.jpg
hawkins83
 
Posts: 28
Joined: Sun Sep 03, 2006 6:39 am

Postby hawkins83 » Sun Sep 03, 2006 10:40 pm

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
hawkins83
 
Posts: 28
Joined: Sun Sep 03, 2006 6:39 am


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest