Inside3D!
     

Need help

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
hawkins83



Joined: 03 Sep 2006
Posts: 28

PostPosted: Sun Sep 03, 2006 6:41 am    Post subject: Need help Reply with quote

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
View user's profile Send private message
SkinnedAlive



Joined: 25 Feb 2005
Posts: 65

PostPosted: Sun Sep 03, 2006 9:09 am    Post subject: Reply with quote

How does it not work exactly? Does it crash? Does it not compile? Help us to help you.
Back to top
View user's profile Send private message
hawkins83



Joined: 03 Sep 2006
Posts: 28

PostPosted: Sun Sep 03, 2006 1:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
SkinnedAlive



Joined: 25 Feb 2005
Posts: 65

PostPosted: Sun Sep 03, 2006 2:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
hawkins83



Joined: 03 Sep 2006
Posts: 28

PostPosted: Sun Sep 03, 2006 6:07 pm    Post subject: Reply with quote

I did that. It doesnt work. ill try it once i get home tonight
Back to top
View user's profile Send private message
SkinnedAlive



Joined: 25 Feb 2005
Posts: 65

PostPosted: Sun Sep 03, 2006 8:11 pm    Post subject: Reply with quote

That should solve the problem. Are the wav files in the right directory? They should be in ..quake/yourmod/hook.
Back to top
View user's profile Send private message
hawkins83



Joined: 03 Sep 2006
Posts: 28

PostPosted: Sun Sep 03, 2006 10:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
hawkins83



Joined: 03 Sep 2006
Posts: 28

PostPosted: Sun Sep 03, 2006 10:20 pm    Post subject: Reply with quote

here is a image of the text file for weapons
http://img379.imageshack.us/img379/3352/weaponsvs1.jpg
Back to top
View user's profile Send private message
hawkins83



Joined: 03 Sep 2006
Posts: 28

PostPosted: Sun Sep 03, 2006 10:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group