home *** CD-ROM | disk | FTP | other *** search
/ Quake 'em / QUAKEEM.BIN / quake / programs / friend4 / friend.txt < prev    next >
Encoding:
Text File  |  1996-08-09  |  2.9 KB  |  80 lines

  1. WHAT THIS IS:
  2.  
  3. The second biggest requested feature is a monster who goes along with you
  4. and beats up on your enemies.  I've added that in this release of my QuakeC
  5. programs.  As shipped, dogs and monsters with FL_FRIENDLY (8192) are
  6. friendly to whatever player they see first.  Just fire up quake with this
  7. progs.dat and enter e1m1.  In the "room" with the bridge, stand and let the
  8. grunt fire at you.  The dog will notice that you're in danger and leap at
  9. the grunt, usually managing to kill him.  Your friends will follow you
  10. around, and can be pushed out of the way. (though not off the edge of
  11. platforms)
  12.  
  13. Just because they're your friends doesn't mean they're any smarter than
  14. regular monsters.  I've seen one dog eat right through another to get to
  15. the enemy it was looking for.  They also don't get mad at you, even if you
  16. take the axe to them.
  17.  
  18. You can also use arcane powers to summon up a minion/pet.  Most of the time
  19. you'll get a dog, sometimes a grunt, and very rarely a demon or a shambler.
  20. Unless you're god, this takes 50% of your health away.  This code, 'impulse
  21. 250', should function even in coop and deathmatch games.  Be careful that
  22. you land the "grenade" (I should make it a zombie flesh piece, I suppose)
  23. somewhere that there's enough room to spawn a monster -- Not against walls.
  24. You lose the health regardless of whether you get a monster.
  25.  
  26. Now, your animals change color to reflect their owner.  However, things
  27. seem not to work on deathmatch servers.  I'm working on debugg(er)ing
  28. this.
  29.  
  30. I also fixed a problem which caused dogs and fiends to be unpushable
  31. after they did a leaping attack.
  32.  
  33.  
  34. HOW TO TRY THIS OUT:
  35.  
  36. Read howpatch.txt for details on how to use this patch file
  37.  
  38. Bind a key to 'impulse 250' to conjure up monsters to serve you.
  39.  
  40. ABOUT MY CODE:
  41.  
  42. I added a .friend property to all entities.  When a monster is
  43. friendly it'll set its .friend property to the first player it sees.
  44. When a .friend gets hurt, the monster attacks whoever hurt the friend.
  45. When doing nothing else, the ai_run code guides the monster to its friend.
  46.  
  47.  
  48. TWEAKS:
  49.  
  50. Change the line in ai.qc:FindTarget() .. about line 435 and remove the
  51.     || self.classname == "monster_dog"
  52. part to make only monsters that are FL_FRIENDLY be friendly.  However,
  53. having friendly dogs on E1M1 really shows off my code.
  54.  
  55.  
  56. KNOWN PROBLEMS
  57.  
  58.  
  59. This program encounters some sort of error during deathmatch.  I've not
  60. had a chance to fix it yet, but with the Linux version
  61.  
  62. THANKS TO
  63.  
  64. id, for the game and all the openness about it.
  65.  
  66. Dave Taylor for working so diligently on the Linux version.
  67.  
  68. My girlfriend, for patiently ignoring me when I try to explain how cool
  69. Quake is.
  70.  
  71.  
  72. GIVE ME FEEDBACK:
  73.  
  74. Please mail me with your thoughts about this quick quake hack. (try saying
  75. that three times fast!)  It may not be as glamorous as level editing, but
  76. I like it.
  77.  
  78. Jeff Epler
  79. (jepler@inetnebr.com, Synger on IRC (linuxnet and undernet, primarily))
  80.