⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fish.htm

📁 Quake 的 各 种 文 档 格 式 说 明
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<a href="qc-types.htm#void">void</a>() <b>f_attack3</b><a name="f_attack3">=</a>[      $attack3,       f_attack4 ] {<a href="fish.htm#fish_melee">fish_melee</a>();};
<a href="qc-types.htm#void">void</a>() <b>f_attack4</b><a name="f_attack4">=</a>[      $attack4,       f_attack5 ] {<a href="fight.htm#ai_charge">ai_charge</a>(10);};
<a href="qc-types.htm#void">void</a>() <b>f_attack5</b><a name="f_attack5">=</a>[      $attack5,       f_attack6 ] {<a href="fight.htm#ai_charge">ai_charge</a>(10);};
<a href="qc-types.htm#void">void</a>() <b>f_attack6</b><a name="f_attack6">=</a>[      $attack6,       f_attack7 ] {<a href="fight.htm#ai_charge">ai_charge</a>(10);};
<a href="qc-types.htm#void">void</a>() <b>f_attack7</b><a name="f_attack7">=</a>[      $attack7,       f_attack8 ] {<a href="fight.htm#ai_charge">ai_charge</a>(10);};
<a href="qc-types.htm#void">void</a>() <b>f_attack8</b><a name="f_attack8">=</a>[      $attack8,       f_attack9 ] {<a href="fight.htm#ai_charge">ai_charge</a>(10);};
<a href="qc-types.htm#void">void</a>() <b>f_attack9</b><a name="f_attack9">=</a>[      $attack9,       f_attack10] {<a href="fish.htm#fish_melee">fish_melee</a>();};
<a href="qc-types.htm#void">void</a>() <b>f_attack10</b><a name="f_attack10">=</a>[      $attack10,      f_attack11] {<a href="fight.htm#ai_charge">ai_charge</a>(10);};
<a href="qc-types.htm#void">void</a>() <b>f_attack11</b><a name="f_attack11">=</a>[      $attack11,      f_attack12] {<a href="fight.htm#ai_charge">ai_charge</a>(10);};
<a href="qc-types.htm#void">void</a>() <b>f_attack12</b><a name="f_attack12">=</a>[      $attack12,      f_attack13] {<a href="fight.htm#ai_charge">ai_charge</a>(10);};
<a href="qc-types.htm#void">void</a>() <b>f_attack13</b><a name="f_attack13">=</a>[      $attack13,      f_attack14] {<a href="fight.htm#ai_charge">ai_charge</a>(10);};
<a href="qc-types.htm#void">void</a>() <b>f_attack14</b><a name="f_attack14">=</a>[      $attack14,      f_attack15] {<a href="fight.htm#ai_charge">ai_charge</a>(10);};
<a href="qc-types.htm#void">void</a>() <b>f_attack15</b><a name="f_attack15">=</a>[      $attack15,      f_attack16] {<a href="fish.htm#fish_melee">fish_melee</a>();};
<a href="qc-types.htm#void">void</a>() <b>f_attack16</b><a name="f_attack16">=</a>[      $attack16,      f_attack17] {<a href="fight.htm#ai_charge">ai_charge</a>(10);};
<a href="qc-types.htm#void">void</a>() <b>f_attack17</b><a name="f_attack17">=</a>[      $attack17,      f_attack18] {<a href="fight.htm#ai_charge">ai_charge</a>(10);};
<a href="qc-types.htm#void">void</a>() <b>f_attack18</b><a name="f_attack18">=</a>[      $attack18,      <a href="fish.htm#f_run1">f_run1</a>    ] {<a href="fight.htm#ai_charge">ai_charge</a>(10);};

<a href="qc-types.htm#void">void</a>() <b>f_death1</b><a name="f_death1">=</a>[      $death1,        f_death2        ] {
<a href="qc-built.htm#sound">sound</a> (<a href="qc-glob.htm#self">self</a>, <a href="qc-defs.htm#CHAN_VOICE">CHAN_VOICE</a>, <b>"fish/death.wav"</b>, 1, <a href="qc-defs.htm#ATTN_NORM">ATTN_NORM</a>);
};
<a href="qc-types.htm#void">void</a>() <b>f_death2</b><a name="f_death2">=</a>[      $death2,        f_death3        ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death3</b><a name="f_death3">=</a>[      $death3,        f_death4        ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death4</b><a name="f_death4">=</a>[      $death4,        f_death5        ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death5</b><a name="f_death5">=</a>[      $death5,        f_death6        ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death6</b><a name="f_death6">=</a>[      $death6,        f_death7        ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death7</b><a name="f_death7">=</a>[      $death7,        f_death8        ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death8</b><a name="f_death8">=</a>[      $death8,        f_death9        ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death9</b><a name="f_death9">=</a>[      $death9,        f_death10       ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death10</b><a name="f_death10">=</a>[      $death10,       f_death11       ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death11</b><a name="f_death11">=</a>[      $death11,       f_death12       ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death12</b><a name="f_death12">=</a>[      $death12,       f_death13       ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death13</b><a name="f_death13">=</a>[      $death13,       f_death14       ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death14</b><a name="f_death14">=</a>[      $death14,       f_death15       ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death15</b><a name="f_death15">=</a>[      $death15,       f_death16       ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death16</b><a name="f_death16">=</a>[      $death16,       f_death17       ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death17</b><a name="f_death17">=</a>[      $death17,       f_death18       ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death18</b><a name="f_death18">=</a>[      $death18,       f_death19       ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death19</b><a name="f_death19">=</a>[      $death19,       f_death20       ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death20</b><a name="f_death20">=</a>[      $death20,       f_death21       ] {};
<a href="qc-types.htm#void">void</a>() <b>f_death21</b><a name="f_death21">=</a>[      $death21,       <a href="fish.htm#f_death21">f_death21</a>       ] {<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_solid">solid</a> = <a href="qc-defs.htm#SOLID_NOT">SOLID_NOT</a>;};

<a href="qc-types.htm#void">void</a>() <b>f_pain1</b><a name="f_pain1">=</a>[      $pain1, f_pain2 ] {};
<a href="qc-types.htm#void">void</a>() <b>f_pain2</b><a name="f_pain2">=</a>[      $pain2, f_pain3 ] {<a href="ai.htm#ai_pain">ai_pain</a>(6);};
<a href="qc-types.htm#void">void</a>() <b>f_pain3</b><a name="f_pain3">=</a>[      $pain3, f_pain4 ] {<a href="ai.htm#ai_pain">ai_pain</a>(6);};
<a href="qc-types.htm#void">void</a>() <b>f_pain4</b><a name="f_pain4">=</a>[      $pain4, f_pain5 ] {<a href="ai.htm#ai_pain">ai_pain</a>(6);};
<a href="qc-types.htm#void">void</a>() <b>f_pain5</b><a name="f_pain5">=</a>[      $pain5, f_pain6 ] {<a href="ai.htm#ai_pain">ai_pain</a>(6);};
<a href="qc-types.htm#void">void</a>() <b>f_pain6</b><a name="f_pain6">=</a>[      $pain6, f_pain7 ] {<a href="ai.htm#ai_pain">ai_pain</a>(6);};
<a href="qc-types.htm#void">void</a>() <b>f_pain7</b><a name="f_pain7">=</a>[      $pain7, f_pain8 ] {<a href="ai.htm#ai_pain">ai_pain</a>(6);};
<a href="qc-types.htm#void">void</a>() <b>f_pain8</b><a name="f_pain8">=</a>[      $pain8, f_pain9 ] {<a href="ai.htm#ai_pain">ai_pain</a>(6);};
<a href="qc-types.htm#void">void</a>() <b>f_pain9</b><a name="f_pain9">=</a>[      $pain9, <a href="fish.htm#f_run1">f_run1</a> ] {<a href="ai.htm#ai_pain">ai_pain</a>(6);};

<a href="qc-types.htm#void">void</a>(<a href="qc-types.htm#entity">entity</a> attacker, <a href="qc-types.htm#float">float</a> damage) <b>fish_pain</b><a name="fish_pain">=</a>
{

<i>// fish allways do pain frames</i>
	<a href="fish.htm#f_pain1">f_pain1</a> ();
};



<i>/*QUAKED monster_fish (1 0 0) (-16 -16 -24) (16 16 24) Ambush
*/</i>

<a href="qc-types.htm#void">void</a>() <b>monster_fish</b><a name="monster_fish">=</a>
{
	<b>if</b> (<a href="qc-glob.htm#deathmatch">deathmatch</a>)
	{
		<a href="qc-built.htm#remove">remove</a>(<a href="qc-glob.htm#self">self</a>);
		<b>return</b>;
	}
	<a href="qc-built.htm#precache_model2">precache_model2</a> (<b>"progs/fish.mdl"</b>);

	<a href="qc-built.htm#precache_sound2">precache_sound2</a> (<b>"fish/death.wav"</b>);
	<a href="qc-built.htm#precache_sound2">precache_sound2</a> (<b>"fish/bite.wav"</b>);
	<a href="qc-built.htm#precache_sound2">precache_sound2</a> (<b>"fish/idle.wav"</b>);

	<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_solid">solid</a> = <a href="qc-defs.htm#SOLID_SLIDEBOX">SOLID_SLIDEBOX</a>;
	<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_movetype">movetype</a> = <a href="qc-defs.htm#MOVETYPE_STEP">MOVETYPE_STEP</a>;

	<a href="qc-built.htm#setmodel">setmodel</a> (<a href="qc-glob.htm#self">self</a>, <b>"progs/fish.mdl"</b>);

	<a href="qc-built.htm#setsize">setsize</a> (<a href="qc-glob.htm#self">self</a>, '-16 -16 -24', '16 16 24');
	<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_health">health</a> = 25;
	
	<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_th_stand">th_stand</a> = <a href="fish.htm#f_stand1">f_stand1</a>;
	<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_th_walk">th_walk</a> = <a href="fish.htm#f_walk1">f_walk1</a>;
	<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_th_run">th_run</a> = <a href="fish.htm#f_run1">f_run1</a>;
	<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_th_die">th_die</a> = <a href="fish.htm#f_death1">f_death1</a>;
	<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_th_pain">th_pain</a> = <a href="fish.htm#fish_pain">fish_pain</a>;
	<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_th_melee">th_melee</a> = <a href="fish.htm#f_attack1">f_attack1</a>;
	
	<a href="monsters.htm#swimmonster_start">swimmonster_start</a> ();
};


</pre></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -