home *** CD-ROM | disk | FTP | other *** search
/ Quake 'em / QUAKEEM.BIN / quake / programs / homing / homing.txt next >
Encoding:
Text File  |  1996-07-27  |  1.8 KB  |  47 lines

  1. Homing Missiles v.001
  2. by Vhold <vhold@netwizards.net> 
  3.          http://netwizards.net/~vhold/
  4.  
  5. ===========
  6. To use:
  7.  
  8. Put the progs.dat from homing.zip in a subdir off of your quake directory.
  9. A good name might be something like "homing" or "vhold"...
  10. then just type "quake -game homing" or whatever directory you put it in.
  11. ============
  12.  
  13. Extra notes .....
  14.  
  15. If you want to see, I also included the weapons.qc that contains the code
  16. for the homing missile.  It was relatively very easy, except for one thing,
  17. the behavior of the traceline function..  This messed me up for a couple
  18. few hours.  
  19.  
  20. Just so everybody else knows, to properly use traceline
  21. to determine if there are any barriers between two entities.. Do this
  22.  
  23. traceline(entity.origin,entity2.origin,TRUE,self);
  24.  
  25. then, it puts the result in the global variable trace_fraction..
  26. There is NO BREAK if trace_fraction is greater then or equal to 1
  27. Anything else, and there is a break.  I originally attempted to use traceline
  28. like the "visable" function in ai.qc uses it, in a boolean context, but
  29. this is no good since 0.5 evaluates to true...
  30.  
  31. Also.. this weapons.qc also contains my extra "impulse 20" command 
  32. that lets you throw a backpack with a little ammo from every category,
  33. that should make an interesting addition to team games.  I suggest 
  34. bind b "impulse 20"
  35. to easily throw backpacks in play.. 
  36.  
  37. I also made some other little changes.. I made crucified zombies killable,
  38. and made the players throw extra gibs when they are gibbed..  I also included
  39. the related .qc for those.
  40.  
  41. Have fun!
  42. __     ___           _     _
  43. \ \   / / |__   ___ | | __| |                vhold@netwizards.net
  44.  \ \ / /| '_ \ / _ \| |/ _` |            http://netwizards.net/~vhold/
  45.   \ V / | | | | (_) | | (_| |
  46.    \_/  |_| |_|\___/|_|\__,_|            
  47.