Инструменты пользователя

Инструменты сайта


xashcookbook:en:recipes:code:server:hiding_shadows

Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

xashcookbook:en:recipes:code:server:hiding_shadows [2014/06/05 06:46]
crxtrdude создано
xashcookbook:en:recipes:code:server:hiding_shadows [2014/06/08 08:53] (текущий)
crxtrdude Adding a read further
Строка 206: Строка 206:
 In response to mathews post: In response to mathews post:
  
-"good tut but i would adapt it to use the cbasemonster a.i for allowing me to controll what monsters can't see you"+good tut but i would adapt it to use the cbasemonster a.i for allowing me to controll what monsters can't see you
  
 ... What I thought was instead of changing the player class to CLASS_NONE, you could create a class that affects different monsters to see you. for example: ... What I thought was instead of changing the player class to CLASS_NONE, you could create a class that affects different monsters to see you. for example:
Строка 212: Строка 212:
 in cbase.h create a new line something like this... in cbase.h create a new line something like this...
  
 +<code cpp>
 #define CLASS_PLAYER_BIOWEAPON 12 // hornets and snarks ... #define CLASS_PLAYER_BIOWEAPON 12 // hornets and snarks ...
 #define CLASS_ALIEN_BIOWEAPON 13 // hornets and snarks ... #define CLASS_ALIEN_BIOWEAPON 13 // hornets and snarks ...
 #define CLASS_SHADOWS 14 // Only certain monsters can see you #define CLASS_SHADOWS 14 // Only certain monsters can see you
 #define CLASS_BARNACLE 99 #define CLASS_BARNACLE 99
 +</​code>​
  
 Now open up monsters.cpp and find the monster relationship table, I think it's called IRelationship,​ inside you'll find all the classes and how they react to one another... Now open up monsters.cpp and find the monster relationship table, I think it's called IRelationship,​ inside you'll find all the classes and how they react to one another...
Строка 251: Строка 253:
  
   * There is a bug in which this code is not initialized pre-game and needs restarting the game in console to work. I'll still need to consult with people to deal with this.   * There is a bug in which this code is not initialized pre-game and needs restarting the game in console to work. I'll still need to consult with people to deal with this.
 +
 +----
 +===== Read Further =====
 +  * [[xashcookbook:​en:​recipes:​code:​server:​classes|Adding new monster classes]] - Use in supplement with Loki's tutorial on CLASS_SHADOW.
xashcookbook/en/recipes/code/server/hiding_shadows.1401950818.txt.gz · Последние изменения: 2014/06/05 06:46 — crxtrdude