Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

Need help

| Inside3d Forums Forum Index -> QuakeC Programming

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 |

Posted: Sun Sep 03, 2006 10:20 pm Post subject: |

here is a image of the text file for weapons http://img379.imageshack.us/img379/3352/weaponsvs1.jpg

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 |

Display posts from previous:

| 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