Advertisement
TechOFreak

Episode 11 Functions

Nov 25th, 2020
1,008
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.33 KB | None | 0 0
  1. //From my Amnesia Rebirth Tutorial Series
  2. //Episode 11 Enemies! Basic Functionality!
  3. //https://www.youtube.com/playlist?list=PL4KkjlmOwLwwMVqedCNpi6caUxhgyf8Qr
  4. //-----------------------------------------------------------
  5.  
  6. //Adds functions for ghoul and agent control
  7. #include "helpers/helper_agent.hps"
  8.  
  9. //Sets the mode that the ghoul should be operating in
  10. Ghoul_Mode_Set("ghoul_hallway", eGhoulMode_Hunt, false);
  11. //enemyName (String)- name of enemy as it appears in the level editor.
  12. //ghoulMode (eGhoulMode)- the mode to put your ghoul in (type eGhoulMode to see all possible modes).
  13. //force (bool)- force the mode change or allow the ai to change modes at best possible time. (true or false)
  14.  
  15. //Sets the ghoul to instantly kill the player
  16. Ghoul_SetInstantKill("ghoul_hallway", true);
  17. //enemyName (String)- name of enemy as it appears in the level editor.
  18. //enable (bool)- whether or not you want to set the ghoul to instantly kill (true or false).
  19.  
  20. //Should the ghoul smell around for the player
  21. Ghoul_SetSmellingActive("ghoul_hallway", false);
  22. //enemyName (String)- name of enemy as it appears in the level editor.
  23. //enable (bool)- whether or not you want to set the ghoul to smell for the player (true or false).
  24.  
  25. //Should the throw be cancelled and player still receive throw damage
  26. Ghoul_CancelPlayerThrow("ghoul_hallway", true);
  27. //enemyName (String)- name of enemy as it appears in the level editor.
  28. //enable (bool)- whether or not you want to set the ghoul apply throw damage but not play the throw animation (true or false).
  29.  
  30. //Should the ghoul avoid throwing the player and just do normal attacks
  31. Ghoul_SetAllowPlayerThrow("ghoul_hallway", false);
  32. //enemyName (String)- name of enemy as it appears in the level editor.
  33. //enable (bool)- whether or not you want to set the ghoul to only hit the player without throwing (true or false).
  34.  
  35. //Have the ghoul eat an entity
  36. Ghoul_EatMeat("ghoul_hallway", "entity_to_eat");
  37. //enemyName (String)- name of enemy as it appears in the level editor.
  38. //entityToEat (String)- name of entity that should be eaten.
  39.  
  40. //Can the ghoul attack the player
  41. Ghoul_SetCanAttack("ghoul_hallway", false);
  42. //enemyName (String)- name of enemy as it appears in the level editor.
  43. //enable (bool)- whether or not the ghoul should attack the player.
  44.  
  45. //Check to see if the ghoul is currently aggressive
  46. Ghoul_IsAggressive("ghoul_hallway");
  47. //enemyName (String)- name of enemy as it appears in the level editor.
  48.  
  49. //Check to see if the ghoul is currently suspicious
  50. Ghoul_IsSuspicious("ghoul_hallway");
  51. //enemyName (String)- name of enemy as it appears in the level editor.
  52.  
  53. //Force the ghoul to throw the player only in a specified direction
  54. Ghoul_SetPlayerThrowForcedDirection("ghoul_hallway", -1);
  55. //enemyName (String)- name of enemy as it appears in the level editor.
  56. //direction (int)- the direction the player will be thrown -1 = all, 0/1/7 = forward, 2/3 = left, 4 = back, 5/6 = right
  57.  
  58. //Calls a method after ghoul throw is finished
  59. Ghoul_SetCallback_ThrowAnimationOver("ghoul_hallway", "OnThrowFinish_GhoulHallway", true);
  60. //enemyName (String)- name of enemy as it appears in the level editor.
  61. //functionName (String)- name of the function to call.
  62. //oneRun (bool)- should this call back only occur once (true or false).
  63.  
  64. void OnThrowFinish_GhoulHallway(){
  65.     cLux_AddDebugMessage("You just got yeeted!");
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement