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

📄 oldone.htm

📁 Quake 的 各 种 文 档 格 式 说 明
💻 HTM
📖 第 1 页 / 共 2 页
字号:
		pl.<a href="qc-enty.htm#dot_solid">solid</a> = <a href="qc-defs.htm#SOLID_NOT">SOLID_NOT</a>;
		pl.<a href="qc-enty.htm#dot_movetype">movetype</a> = <a href="qc-defs.htm#MOVETYPE_NONE">MOVETYPE_NONE</a>;
		pl.<a href="qc-enty.htm#dot_modelindex">modelindex</a> = 0;
		<a href="qc-built.htm#setorigin">setorigin</a> (pl, pos.<a href="qc-enty.htm#dot_origin">origin</a>);
		pl = <a href="qc-built.htm#find">find</a> (pl, classname, <b>"player"</b>);
	}	
	
	<i>// make fake versions of all players as standins, and move the real</i>
	<i>// players to the intermission spot</i>
	
	<i>// wait for 1 second</i>
	timer = <a href="qc-built.htm#spawn">spawn</a>();
	timer.<a href="qc-enty.htm#dot_nextthink">nextthink</a> = <a href="qc-glob.htm#time">time</a> + 1;
	timer.<a href="qc-enty.htm#dot_think">think</a> = <a href="oldone.htm#finale_2">finale_2</a>;	
};

<a href="qc-types.htm#void">void</a>() <b>finale_2</b><a name="finale_2">=</a>
{
	<b>local</b> <a href="qc-types.htm#vector">vector</a>	o;

	<i>// start a teleport splash inside shub</i>

	o = <a href="oldone.htm#shub">shub</a>.<a href="qc-enty.htm#dot_origin">origin</a> - '0 100 0';
	<a href="qc-netf.htm#WriteByte">WriteByte</a> (<a href="qc-net.htm#MSG_BROADCAST">MSG_BROADCAST</a>, <a href="qc-net.htm#SVC_TEMPENTITY">SVC_TEMPENTITY</a>);
	<a href="qc-netf.htm#WriteByte">WriteByte</a> (<a href="qc-net.htm#MSG_BROADCAST">MSG_BROADCAST</a>, <a href="defs.htm#TE_TELEPORT">TE_TELEPORT</a>);
	<a href="qc-netf.htm#WriteCoord">WriteCoord</a> (<a href="qc-net.htm#MSG_BROADCAST">MSG_BROADCAST</a>, o_x);
	<a href="qc-netf.htm#WriteCoord">WriteCoord</a> (<a href="qc-net.htm#MSG_BROADCAST">MSG_BROADCAST</a>, o_y);
	<a href="qc-netf.htm#WriteCoord">WriteCoord</a> (<a href="qc-net.htm#MSG_BROADCAST">MSG_BROADCAST</a>, o_z);

	<a href="qc-built.htm#sound">sound</a> (<a href="oldone.htm#shub">shub</a>, <a href="qc-defs.htm#CHAN_VOICE">CHAN_VOICE</a>, <b>"misc/r_tele1.wav"</b>, 1, <a href="qc-defs.htm#ATTN_NORM">ATTN_NORM</a>);
	
	<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_nextthink">nextthink</a> = <a href="qc-glob.htm#time">time</a> + 2;
	<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_think">think</a> = <a href="oldone.htm#finale_3">finale_3</a>;
};

<a href="qc-types.htm#void">void</a>() <b>finale_3</b><a name="finale_3">=</a>
{
	<i>// start shub thrashing wildly</i>
	<a href="oldone.htm#shub">shub</a>.<a href="qc-enty.htm#dot_think">think</a> = <a href="oldone.htm#old_thrash1">old_thrash1</a>;
	<a href="qc-built.htm#sound">sound</a> (<a href="oldone.htm#shub">shub</a>, <a href="qc-defs.htm#CHAN_VOICE">CHAN_VOICE</a>, <b>"boss2/death.wav"</b>, 1, <a href="qc-defs.htm#ATTN_NORM">ATTN_NORM</a>);
	<a href="qc-built.htm#lightstyle">lightstyle</a>(0, <b>"abcdefghijklmlkjihgfedcb"</b>);	
};

<a href="qc-types.htm#void">void</a>() <b>finale_4</b><a name="finale_4">=</a>
{
	<i>// throw tons of meat chunks	</i>
	<b>local</b>	<a href="qc-types.htm#vector">vector</a>	oldo;
	<b>local</b>	<a href="qc-types.htm#float">float</a>	x, y, z;
	<b>local</b>	<a href="qc-types.htm#float">float</a>	r;
	<b>local</b> <a href="qc-types.htm#entity">entity</a>	n;

	<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>"boss2/pop2.wav"</b>, 1, <a href="qc-defs.htm#ATTN_NORM">ATTN_NORM</a>);
	
	oldo = <a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_origin">origin</a>;

	z = 16;
	<b>while</b> (z &lt;= 144)
	{
		x = -64;
		<b>while</b> (x &lt;= 64)
		{
			y = -64;
			<b>while</b> (y &lt;= 64)
			{
				<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_origin_x">origin_x</a> = oldo_x + x;
				<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_origin_y">origin_y</a> = oldo_y + y;
				<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_origin_z">origin_z</a> = oldo_z + z;

				r = <a href="qc-built.htm#random">random</a>();
				<b>if</b> (r &lt; 0.3)				
					<a href="player.htm#ThrowGib">ThrowGib</a> (<b>"progs/gib1.mdl"</b>, -999);
				<b>else</b> <b>if</b> (r &lt; 0.6)
					<a href="player.htm#ThrowGib">ThrowGib</a> (<b>"progs/gib2.mdl"</b>, -999);
				<b>else</b>
					<a href="player.htm#ThrowGib">ThrowGib</a> (<b>"progs/gib3.mdl"</b>, -999);
				y = y + 32;
			}
			x = x + 32;
		}
		z = z + 96;
	}
	<i>// start the end text</i>
	<a href="qc-netf.htm#WriteByte">WriteByte</a> (<a href="qc-net.htm#MSG_ALL">MSG_ALL</a>, <a href="qc-net.htm#SVC_FINALE">SVC_FINALE</a>);
	<a href="qc-netf.htm#WriteString">WriteString</a> (<a href="qc-net.htm#MSG_ALL">MSG_ALL</a>, <b>"Congratulations and well done! You have\nbeaten the hideous Shub-Niggurath, and\nher hundreds of ugly changelings and\nmonsters. You have proven that your\nskill and your cunning are greater than\nall the powers of Quake. You are the\nmaster now. Id Software salutes you."</b>);

<i>// put a player model down</i>
	n = <a href="qc-built.htm#spawn">spawn</a>();
	<a href="qc-built.htm#setmodel">setmodel</a> (n, <b>"progs/player.mdl"</b>);
	oldo = oldo - '32 264 0';
	<a href="qc-built.htm#setorigin">setorigin</a> (n, oldo);
	n.<a href="qc-enty.htm#dot_angles">angles</a> = '0 290 0';
	n.<a href="qc-enty.htm#dot_frame">frame</a> = 1;

	<a href="qc-built.htm#remove">remove</a> (<a href="qc-glob.htm#self">self</a>);

<i>// switch cd track</i>
	<a href="qc-netf.htm#WriteByte">WriteByte</a> (<a href="qc-net.htm#MSG_ALL">MSG_ALL</a>, <a href="qc-net.htm#SVC_CDTRACK">SVC_CDTRACK</a>);
	<a href="qc-netf.htm#WriteByte">WriteByte</a> (<a href="qc-net.htm#MSG_ALL">MSG_ALL</a>, 3);
	<a href="qc-netf.htm#WriteByte">WriteByte</a> (<a href="qc-net.htm#MSG_ALL">MSG_ALL</a>, 3);
	<a href="qc-built.htm#lightstyle">lightstyle</a>(0, <b>"m"</b>);	
};

<i>//============================================================================</i>


<i>/*QUAKED monster_oldone (1 0 0) (-16 -16 -24) (16 16 32)
*/</i>

<a href="qc-types.htm#void">void</a>() <b>monster_oldone</b><a name="monster_oldone">=</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/oldone.mdl"</b>);

	<a href="qc-built.htm#precache_sound2">precache_sound2</a> (<b>"boss2/death.wav"</b>);
	<a href="qc-built.htm#precache_sound2">precache_sound2</a> (<b>"boss2/idle.wav"</b>);
	<a href="qc-built.htm#precache_sound2">precache_sound2</a> (<b>"boss2/sight.wav"</b>);
	<a href="qc-built.htm#precache_sound2">precache_sound2</a> (<b>"boss2/pop2.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/oldone.mdl"</b>);
	<a href="qc-built.htm#setsize">setsize</a> (<a href="qc-glob.htm#self">self</a>, '-160 -128 -24', '160 128 256');

	<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_health">health</a> = 40000;		<i>// kill by telefrag</i>
	<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_think">think</a> = <a href="oldone.htm#old_idle1">old_idle1</a>;
	<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_nextthink">nextthink</a> = <a href="qc-glob.htm#time">time</a> + 0.1;	
	<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_takedamage">takedamage</a> = <a href="qc-defs.htm#DAMAGE_YES">DAMAGE_YES</a>;
	<a href="qc-glob.htm#self">self</a>.<a href="qc-enty.htm#dot_th_die">th_die</a> = <a href="oldone.htm#finale_1">finale_1</a>;
	<a href="oldone.htm#shub">shub</a> = <a href="qc-glob.htm#self">self</a>;
	
	<a href="qc-glob.htm#total_monsters">total_monsters</a> = <a href="qc-glob.htm#total_monsters">total_monsters</a> + 1;
};


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

⌨️ 快捷键说明

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