SHARE
TWEET

Untitled

a guest May 19th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Index: D:/andre/prg/doom/Eternity/source/p_enemy.c
  2. ===================================================================
  3. --- D:/andre/prg/doom/Eternity/source/p_enemy.c (revision 1103)
  4. +++ D:/andre/prg/doom/Eternity/source/p_enemy.c (working copy)
  5. @@ -1247,6 +1247,7 @@
  6.  static boolean P_HelpFriend(mobj_t *actor)
  7.  {
  8.     thinker_t *cap, *th;
  9. +   int aaa = 0;
  10.  
  11.     // If less than 33% health, self-preservation rules
  12.     if(actor->health*3 < actor->info->spawnhealth)
  13. @@ -1260,6 +1261,7 @@
  14.  
  15.     for (th = cap->cnext; th != cap; th = th->cnext)
  16.     {
  17. +     aaa++;
  18.        if(((mobj_t *) th)->health*2 >=
  19.           ((mobj_t *) th)->info->spawnhealth)
  20.        {
  21. @@ -1279,6 +1281,7 @@
  22.           }
  23.     }
  24.    
  25. +   doom_printf("%d", aaa);
  26.     return false;
  27.  }
RAW Paste Data
Challenge yourself this year...
Learn something new in 2017
Top