|
|
|
@@ -373,224 +373,232 @@ $(function(){initNavTree('blue__and__red__shells_2update_8inc_8c_source.html',''
|
|
|
|
|
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[1] = pad7;</div>
|
|
|
|
|
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> </div>
|
|
|
|
|
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> <span class="keywordflow">if</span> ((player-><a class="code hl_variable" href="structPlayer.html#a71c4ebed7633cd2330dec792fcf24f1f">type</a> & <a class="code hl_define" href="defines_8h.html#ab30d6efeb8601088397fff50c25c2424">PLAYER_HUMAN</a>) != 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="main_8c.html#ad0d02d334a85a918cd9504a24db19f61">gDemoMode</a>) {</div>
|
|
|
|
|
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> controller = <a class="code hl_variable" href="main_8c.html#af41a5bd042fce7f6b01a713e5e141013">gControllerOne</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> controller = &<a class="code hl_variable" href="main_8c.html#a977a26348d9f8d421d2f927f19d50693">gControllers</a>[shell-><a class="code hl_variable" href="structShellActor.html#a77c5d4878d9a0867430326a1d63491dc">playerId</a>];</div>
|
|
|
|
|
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> controller = <a class="code hl_variable" href="main_8c.html#af41a5bd042fce7f6b01a713e5e141013">gControllerOne</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> </div>
|
|
|
|
|
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> <span class="keywordflow">if</span> ((controller-><a class="code hl_variable" href="structController.html#af68b8dc9459d69a7dfdf57dabf8dbae5">buttonDepressed</a> & Z_TRIG) != 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> controller-><a class="code hl_variable" href="structController.html#af68b8dc9459d69a7dfdf57dabf8dbae5">buttonDepressed</a> &= ~Z_TRIG;</div>
|
|
|
|
|
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba6bccf5be381532660e62c226008d6382">RELEASED_SHELL</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> <span class="keywordflow">if</span> (player-><a class="code hl_variable" href="structPlayer.html#a0dae7ee727c1fd1f3d07b2b7231e85cf">unk_0C0</a> > 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a> = 0x78E3;</div>
|
|
|
|
|
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a> = -0x78E4;</div>
|
|
|
|
|
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba6bccf5be381532660e62c226008d6382">RELEASED_SHELL</a>:</div>
|
|
|
|
|
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> player = &<a class="code hl_variable" href="main_8c.html#a5f24aafa500466dbf1a7154ff7041fc2">gPlayers</a>[shell-><a class="code hl_variable" href="structShellActor.html#a77c5d4878d9a0867430326a1d63491dc">playerId</a>];</div>
|
|
|
|
|
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a> > 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a> -= 0x71C;</div>
|
|
|
|
|
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a> < 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba453f34a714854991280e3f087d9715af">MOVING_SHELL</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> <a class="code hl_function" href="external_8c.html#a2be9efc97a92e19d02aaee90d676acc1">func_800C9060</a>(shell-><a class="code hl_variable" href="structShellActor.html#a77c5d4878d9a0867430326a1d63491dc">playerId</a>, <a class="code hl_define" href="sounds_8h.html#a71288c0bb15b503d4570b441a05013f4">SOUND_ARG_LOAD</a>(0x19, 0x00, 0x80, 0x04));</div>
|
|
|
|
|
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> <a class="code hl_function" href="external_8c.html#a337fc3ab94ebb3293a85908229303ac8">func_800C90F4</a>(shell-><a class="code hl_variable" href="structShellActor.html#a77c5d4878d9a0867430326a1d63491dc">playerId</a>,</div>
|
|
|
|
|
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> (player-><a class="code hl_variable" href="structPlayer.html#a3c54f7cdfdf596fcb7500e4b56a3340d">characterId</a> * 0x10) + <a class="code hl_define" href="sounds_8h.html#a71288c0bb15b503d4570b441a05013f4">SOUND_ARG_LOAD</a>(0x29, 0x00, 0x80, 0x00));</div>
|
|
|
|
|
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span> <span class="keywordflow">if</span> (pad13 == <a class="code hl_enumvalue" href="actor__types_8h.html#a06ad3f803827afd107e7682c8c22d990a1cc14c146c0ad5e7ee9f89b46d93fbdc">ACTOR_RED_SHELL</a>) {</div>
|
|
|
|
|
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> <a class="code hl_function" href="code__80005FD0_8c.html#a049aa28f9db56c36a8ea389644629029">add_red_shell_in_unexpired_actor_list</a>(<a class="code hl_function" href="Game_8cpp.html#a04c2e1c30af14b6e8354d7a9be00e39c">CM_FindActorIndex</a>(shell));</div>
|
|
|
|
|
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> <a class="code hl_function" href="code__80005FD0_8c.html#a8d5e85372f25e4b12d62edcc131bf7ae">add_blue_shell_in_unexpired_actor_list</a>(<a class="code hl_function" href="Game_8cpp.html#a04c2e1c30af14b6e8354d7a9be00e39c">CM_FindActorIndex</a>(shell));</div>
|
|
|
|
|
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> <a class="code hl_function" href="external_8c.html#a903d1c248a30cd68262a6833b9c0b112">func_800C9D80</a>(shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>, shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>, <a class="code hl_define" href="sounds_8h.html#a71288c0bb15b503d4570b441a05013f4">SOUND_ARG_LOAD</a>(0x51, 0x01, 0x80, 0x08));</div>
|
|
|
|
|
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span></div>
|
|
|
|
|
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> <span class="comment">// According to other code, this whole chunk should not be ran by CPUs</span></div>
|
|
|
|
|
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> <span class="keywordflow">if</span> ((player-><a class="code hl_variable" href="structPlayer.html#a71c4ebed7633cd2330dec792fcf24f1f">type</a> & <a class="code hl_define" href="defines_8h.html#ab30d6efeb8601088397fff50c25c2424">PLAYER_HUMAN</a>) != 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="main_8c.html#ad0d02d334a85a918cd9504a24db19f61">gDemoMode</a>) {</div>
|
|
|
|
|
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> controller = <a class="code hl_variable" href="main_8c.html#af41a5bd042fce7f6b01a713e5e141013">gControllerOne</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> controller = &<a class="code hl_variable" href="main_8c.html#a977a26348d9f8d421d2f927f19d50693">gControllers</a>[shell-><a class="code hl_variable" href="structShellActor.html#a77c5d4878d9a0867430326a1d63491dc">playerId</a>];</div>
|
|
|
|
|
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> <span class="comment">// } else {</span></div>
|
|
|
|
|
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> <span class="comment">// controller = gControllerOne;</span></div>
|
|
|
|
|
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> <span class="comment">// }</span></div>
|
|
|
|
|
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> </div>
|
|
|
|
|
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> <span class="keywordflow">if</span> ((controller-><a class="code hl_variable" href="structController.html#af68b8dc9459d69a7dfdf57dabf8dbae5">buttonDepressed</a> & Z_TRIG) != 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> controller-><a class="code hl_variable" href="structController.html#af68b8dc9459d69a7dfdf57dabf8dbae5">buttonDepressed</a> &= ~Z_TRIG;</div>
|
|
|
|
|
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba6bccf5be381532660e62c226008d6382">RELEASED_SHELL</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> <span class="keywordflow">if</span> (player-><a class="code hl_variable" href="structPlayer.html#a0dae7ee727c1fd1f3d07b2b7231e85cf">unk_0C0</a> > 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a> = 0x78E3;</div>
|
|
|
|
|
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a> = -0x78E4;</div>
|
|
|
|
|
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba6bccf5be381532660e62c226008d6382">RELEASED_SHELL</a>:</div>
|
|
|
|
|
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> player = &<a class="code hl_variable" href="main_8c.html#a5f24aafa500466dbf1a7154ff7041fc2">gPlayers</a>[shell-><a class="code hl_variable" href="structShellActor.html#a77c5d4878d9a0867430326a1d63491dc">playerId</a>];</div>
|
|
|
|
|
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a> > 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a> -= 0x71C;</div>
|
|
|
|
|
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a> < 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba453f34a714854991280e3f087d9715af">MOVING_SHELL</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span> <span class="comment">// Added condition so that CPUs do not make sound on item-use</span></div>
|
|
|
|
|
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> <span class="keywordflow">if</span> ((<a class="code hl_variable" href="main_8c.html#a5f24aafa500466dbf1a7154ff7041fc2">gPlayers</a>[shell-><a class="code hl_variable" href="structShellActor.html#a77c5d4878d9a0867430326a1d63491dc">playerId</a>].type & <a class="code hl_define" href="defines_8h.html#ab30d6efeb8601088397fff50c25c2424">PLAYER_HUMAN</a>) != 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> <a class="code hl_function" href="external_8c.html#a2be9efc97a92e19d02aaee90d676acc1">func_800C9060</a>(shell-><a class="code hl_variable" href="structShellActor.html#a77c5d4878d9a0867430326a1d63491dc">playerId</a>, <a class="code hl_define" href="sounds_8h.html#a71288c0bb15b503d4570b441a05013f4">SOUND_ARG_LOAD</a>(0x19, 0x00, 0x80, 0x04));</div>
|
|
|
|
|
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> <a class="code hl_function" href="external_8c.html#a337fc3ab94ebb3293a85908229303ac8">func_800C90F4</a>(shell-><a class="code hl_variable" href="structShellActor.html#a77c5d4878d9a0867430326a1d63491dc">playerId</a>,</div>
|
|
|
|
|
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> (player-><a class="code hl_variable" href="structPlayer.html#a3c54f7cdfdf596fcb7500e4b56a3340d">characterId</a> * 0x10) + <a class="code hl_define" href="sounds_8h.html#a71288c0bb15b503d4570b441a05013f4">SOUND_ARG_LOAD</a>(0x29, 0x00, 0x80, 0x00));</div>
|
|
|
|
|
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno"> 302</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno"> 303</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno"> 304</span> shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a> += 0x71C;</div>
|
|
|
|
|
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a> > 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno"> 306</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba453f34a714854991280e3f087d9715af">MOVING_SHELL</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno"> 307</span> <a class="code hl_function" href="external_8c.html#a2be9efc97a92e19d02aaee90d676acc1">func_800C9060</a>(shell-><a class="code hl_variable" href="structShellActor.html#a77c5d4878d9a0867430326a1d63491dc">playerId</a>, <a class="code hl_define" href="sounds_8h.html#a71288c0bb15b503d4570b441a05013f4">SOUND_ARG_LOAD</a>(0x19, 0x00, 0x80, 0x04));</div>
|
|
|
|
|
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno"> 308</span> <a class="code hl_function" href="external_8c.html#a337fc3ab94ebb3293a85908229303ac8">func_800C90F4</a>(shell-><a class="code hl_variable" href="structShellActor.html#a77c5d4878d9a0867430326a1d63491dc">playerId</a>,</div>
|
|
|
|
|
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno"> 309</span> (player-><a class="code hl_variable" href="structPlayer.html#a3c54f7cdfdf596fcb7500e4b56a3340d">characterId</a> * 0x10) + <a class="code hl_define" href="sounds_8h.html#a71288c0bb15b503d4570b441a05013f4">SOUND_ARG_LOAD</a>(0x29, 0x00, 0x80, 0x00));</div>
|
|
|
|
|
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno"> 310</span> <span class="keywordflow">if</span> (pad13 == <a class="code hl_enumvalue" href="actor__types_8h.html#a06ad3f803827afd107e7682c8c22d990a1cc14c146c0ad5e7ee9f89b46d93fbdc">ACTOR_RED_SHELL</a>) {</div>
|
|
|
|
|
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno"> 311</span> <a class="code hl_function" href="code__80005FD0_8c.html#a049aa28f9db56c36a8ea389644629029">add_red_shell_in_unexpired_actor_list</a>(<a class="code hl_function" href="Game_8cpp.html#a04c2e1c30af14b6e8354d7a9be00e39c">CM_FindActorIndex</a>(shell));</div>
|
|
|
|
|
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno"> 312</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"> 313</span> <a class="code hl_function" href="code__80005FD0_8c.html#a8d5e85372f25e4b12d62edcc131bf7ae">add_blue_shell_in_unexpired_actor_list</a>(<a class="code hl_function" href="Game_8cpp.html#a04c2e1c30af14b6e8354d7a9be00e39c">CM_FindActorIndex</a>(shell));</div>
|
|
|
|
|
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span> <a class="code hl_function" href="external_8c.html#a903d1c248a30cd68262a6833b9c0b112">func_800C9D80</a>(shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>, shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>, <a class="code hl_define" href="sounds_8h.html#a71288c0bb15b503d4570b441a05013f4">SOUND_ARG_LOAD</a>(0x51, 0x01, 0x80, 0x08));</div>
|
|
|
|
|
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno"> 316</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> == <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba453f34a714854991280e3f087d9715af">MOVING_SHELL</a>) {</div>
|
|
|
|
|
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span> shell-><a class="code hl_variable" href="structShellActor.html#adaca452aa94770d8d57f99cc1f3b7151">someTimer</a> = 0x001E;</div>
|
|
|
|
|
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span> height = 8.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> <span class="keywordflow">if</span> (player-><a class="code hl_variable" href="structPlayer.html#a1eb7b22cb98924aa32fa909b969dee34">speed</a> > 8.0f) {</div>
|
|
|
|
|
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> height = player-><a class="code hl_variable" href="structPlayer.html#a1eb7b22cb98924aa32fa909b969dee34">speed</a> * 1.2f;</div>
|
|
|
|
|
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno"> 323</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span> somePosVel[0] = 0.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span> somePosVel[1] = 0.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span> somePosVel[2] = height;</div>
|
|
|
|
|
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span> <a class="code hl_function" href="math__util_8c.html#a6270d7eb2d38b9c093e61da43b7d51ff">func_802B64C4</a>(somePosVel, (s16) (player-><a class="code hl_variable" href="structPlayer.html#a4fafb84477d127ff2a1b74331c904f3f">rotation</a>[1] + player-><a class="code hl_variable" href="structPlayer.html#a0dae7ee727c1fd1f3d07b2b7231e85cf">unk_0C0</a>));</div>
|
|
|
|
|
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno"> 328</span> shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[0] = somePosVel[0];</div>
|
|
|
|
|
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span> shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[1] = somePosVel[1];</div>
|
|
|
|
|
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span> shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[2] = somePosVel[2];</div>
|
|
|
|
|
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</span> somePosVel[0] = <a class="code hl_function" href="math__util_8c.html#a19ed3bd78fd2d3e2bd0a29f6caf48545">sins</a>(shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a>) * 8.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span> somePosVel[1] = shell-><a class="code hl_variable" href="structShellActor.html#a610da60b5b38774fba6b6bb3076fd007">boundingBoxSize</a> - player-><a class="code hl_variable" href="structPlayer.html#a681f0fac4abe58cf5919dd4c6ac503d0">boundingBoxSize</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> somePosVel[2] = <a class="code hl_function" href="math__util_8c.html#ae69cbf5c8d4b3b0dba2d7b4d4673689f">coss</a>(shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a>) * 8.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span> <a class="code hl_function" href="math__util_8c.html#ad5bb0138c68b50f119d3cb7966f522b7">mtxf_translate_vec3f_mat3</a>(somePosVel, player-><a class="code hl_variable" href="structPlayer.html#a28df2c989598022073df6fc2425cbefe">orientationMatrix</a>);</div>
|
|
|
|
|
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span> shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[0] = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[0] + somePosVel[0];</div>
|
|
|
|
|
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"> 337</span> shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[1] = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[1] + somePosVel[1];</div>
|
|
|
|
|
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span> shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[2] = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[2] + somePosVel[2];</div>
|
|
|
|
|
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno"> 340</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno"> 341</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba453f34a714854991280e3f087d9715af">MOVING_SHELL</a>:</div>
|
|
|
|
|
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno"> 342</span> player = &<a class="code hl_variable" href="main_8c.html#a5f24aafa500466dbf1a7154ff7041fc2">gPlayers</a>[shell-><a class="code hl_variable" href="structShellActor.html#a77c5d4878d9a0867430326a1d63491dc">playerId</a>];</div>
|
|
|
|
|
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno"> 343</span> shell-><a class="code hl_variable" href="structShellActor.html#adaca452aa94770d8d57f99cc1f3b7151">someTimer</a> -= 1;</div>
|
|
|
|
|
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno"> 344</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structShellActor.html#adaca452aa94770d8d57f99cc1f3b7151">someTimer</a> == 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span> shell-><a class="code hl_variable" href="structShellActor.html#a5368cbbb7b090d3f5abb520ca3ab9bf6">flags</a> &= 0xEFFF;</div>
|
|
|
|
|
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"> 346</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structShellActor.html#a6eb62ab515773b295e7d8c4f6c10ae1b">type</a> == <a class="code hl_enumvalue" href="actor__types_8h.html#a06ad3f803827afd107e7682c8c22d990a1bb766203677f7a6b6337a94f8f17f7e">ACTOR_BLUE_SPINY_SHELL</a>) {</div>
|
|
|
|
|
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno"> 347</span> shell-><a class="code hl_variable" href="structShellActor.html#ad503d4399dfef15a8aeb4cfec64ac155">targetPlayer</a> = <a class="code hl_variable" href="code__800029B0_8c.html#af041d75e08bc4d654b30e1c5c79550c9">gPlayerPositionLUT</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno"> 348</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495bacbbf8ec958ded92542c807a249ab5663">BLUE_SHELL_LOCK_ON</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno"> 349</span> shell-><a class="code hl_variable" href="structShellActor.html#a6d1756d5e7cf11fdb35eec5ef86c6951">shellId</a> = 1000.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno"> 350</span> temp_v0 = <a class="code hl_variable" href="code__80005FD0_8c.html#aecaedcf25130d660c6c5885cb92f3259">gNearestPathPointByPlayerId</a>[player - <a class="code hl_variable" href="main_8c.html#a0204a9efe5c4b5e5ce5153086a5ccb49">gPlayerOne</a>] + 8;</div>
|
|
|
|
|
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno"> 351</span> <span class="keywordflow">if</span> ((s32) <a class="code hl_variable" href="code__80005FD0_8c.html#a95ff1a706d5fb5bd43a94bb9737f5797">gSelectedPathCount</a> < temp_v0) {</div>
|
|
|
|
|
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno"> 352</span> temp_v0 -= <a class="code hl_variable" href="code__80005FD0_8c.html#a95ff1a706d5fb5bd43a94bb9737f5797">gSelectedPathCount</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno"> 353</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span> shell-><a class="code hl_variable" href="structShellActor.html#af3da1448ac4320471aadbc7652ea81a5">pathIndex</a> = temp_v0;</div>
|
|
|
|
|
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="main_8c.html#afc00985679cbd41aa08a8fcc5925e438">gModeSelection</a> == <a class="code hl_define" href="defines_8h.html#a3f48cce4d2125604131fc7878460f44a">BATTLE</a>) {</div>
|
|
|
|
|
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno"> 356</span> shell-><a class="code hl_variable" href="structShellActor.html#a6d1756d5e7cf11fdb35eec5ef86c6951">shellId</a> = 1000.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span> shell-><a class="code hl_variable" href="structShellActor.html#ad503d4399dfef15a8aeb4cfec64ac155">targetPlayer</a> = <a class="code hl_function" href="blue__and__red__shells_2update_8inc_8c.html#a7e2174a63721c801f8a932d74e8c3be9">func_802B3FD0</a>(player, shell);</div>
|
|
|
|
|
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno"> 358</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structShellActor.html#ad503d4399dfef15a8aeb4cfec64ac155">targetPlayer</a> < 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span> shell-><a class="code hl_variable" href="structShellActor.html#a5368cbbb7b090d3f5abb520ca3ab9bf6">flags</a> = 0x8000;</div>
|
|
|
|
|
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"> 360</span> shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[1] = 3.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"> 361</span> shell-><a class="code hl_variable" href="structShellActor.html#af3da1448ac4320471aadbc7652ea81a5">pathIndex</a> = 0;</div>
|
|
|
|
|
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno"> 362</span> shell-><a class="code hl_variable" href="structShellActor.html#adaca452aa94770d8d57f99cc1f3b7151">someTimer</a> = 0x003C;</div>
|
|
|
|
|
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno"> 363</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba27fa834989e28bdd46500b6204a16f29">DESTROYED_SHELL</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00364" name="l00364"></a><span class="lineno"> 364</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00365" name="l00365"></a><span class="lineno"> 365</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495baed8383aa36b27a569d33434e6638551d">RED_SHELL_LOCK_ON</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00366" name="l00366"></a><span class="lineno"> 366</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno"> 367</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno"> 368</span> <span class="keywordflow">if</span> (player-><a class="code hl_variable" href="structPlayer.html#af68a201da4cc5a0628252a352d147767">currentRank</a> == 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00369" name="l00369"></a><span class="lineno"> 369</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495baa42e974f033d01764e1c170a632c43bc">TRIPLE_GREEN_SHELL</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00370" name="l00370"></a><span class="lineno"> 370</span> shell-><a class="code hl_variable" href="structShellActor.html#adaca452aa94770d8d57f99cc1f3b7151">someTimer</a> = 0x0258;</div>
|
|
|
|
|
<div class="line"><a id="l00371" name="l00371"></a><span class="lineno"> 371</span> temp_v0 = <a class="code hl_variable" href="code__80005FD0_8c.html#aecaedcf25130d660c6c5885cb92f3259">gNearestPathPointByPlayerId</a>[player - <a class="code hl_variable" href="main_8c.html#a0204a9efe5c4b5e5ce5153086a5ccb49">gPlayerOne</a>] + 8;</div>
|
|
|
|
|
<div class="line"><a id="l00372" name="l00372"></a><span class="lineno"> 372</span> <span class="keywordflow">if</span> ((s32) <a class="code hl_variable" href="code__80005FD0_8c.html#a95ff1a706d5fb5bd43a94bb9737f5797">gSelectedPathCount</a> < temp_v0) {</div>
|
|
|
|
|
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno"> 373</span> temp_v0 -= <a class="code hl_variable" href="code__80005FD0_8c.html#a95ff1a706d5fb5bd43a94bb9737f5797">gSelectedPathCount</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno"> 374</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno"> 375</span> shell-><a class="code hl_variable" href="structShellActor.html#af3da1448ac4320471aadbc7652ea81a5">pathIndex</a> = temp_v0;</div>
|
|
|
|
|
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno"> 376</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (player-><a class="code hl_variable" href="structPlayer.html#af68a201da4cc5a0628252a352d147767">currentRank</a> >= 5) {</div>
|
|
|
|
|
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno"> 377</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba7277793449f98cde9e41aeef89d77bba">GREEN_SHELL_HIT_A_RACER</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno"> 378</span> shell-><a class="code hl_variable" href="structShellActor.html#a6d1756d5e7cf11fdb35eec5ef86c6951">shellId</a> = 1000.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno"> 379</span> temp_v0 = <a class="code hl_variable" href="code__80005FD0_8c.html#aecaedcf25130d660c6c5885cb92f3259">gNearestPathPointByPlayerId</a>[player - <a class="code hl_variable" href="main_8c.html#a0204a9efe5c4b5e5ce5153086a5ccb49">gPlayerOne</a>] + 8;</div>
|
|
|
|
|
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno"> 380</span> <span class="keywordflow">if</span> ((s32) <a class="code hl_variable" href="code__80005FD0_8c.html#a95ff1a706d5fb5bd43a94bb9737f5797">gSelectedPathCount</a> < temp_v0) {</div>
|
|
|
|
|
<div class="line"><a id="l00381" name="l00381"></a><span class="lineno"> 381</span> temp_v0 -= <a class="code hl_variable" href="code__80005FD0_8c.html#a95ff1a706d5fb5bd43a94bb9737f5797">gSelectedPathCount</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00382" name="l00382"></a><span class="lineno"> 382</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00383" name="l00383"></a><span class="lineno"> 383</span> shell-><a class="code hl_variable" href="structShellActor.html#af3da1448ac4320471aadbc7652ea81a5">pathIndex</a> = temp_v0;</div>
|
|
|
|
|
<div class="line"><a id="l00384" name="l00384"></a><span class="lineno"> 384</span> shell-><a class="code hl_variable" href="structShellActor.html#ad503d4399dfef15a8aeb4cfec64ac155">targetPlayer</a> = <a class="code hl_variable" href="code__800029B0_8c.html#af041d75e08bc4d654b30e1c5c79550c9">gPlayerPositionLUT</a>[player-><a class="code hl_variable" href="structPlayer.html#af68a201da4cc5a0628252a352d147767">currentRank</a> - 1];</div>
|
|
|
|
|
<div class="line"><a id="l00385" name="l00385"></a><span class="lineno"> 385</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno"> 386</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495baed8383aa36b27a569d33434e6638551d">RED_SHELL_LOCK_ON</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno"> 302</span> <span class="keywordflow">if</span> (pad13 == <a class="code hl_enumvalue" href="actor__types_8h.html#a06ad3f803827afd107e7682c8c22d990a1cc14c146c0ad5e7ee9f89b46d93fbdc">ACTOR_RED_SHELL</a>) {</div>
|
|
|
|
|
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno"> 303</span> <a class="code hl_function" href="code__80005FD0_8c.html#a049aa28f9db56c36a8ea389644629029">add_red_shell_in_unexpired_actor_list</a>(<a class="code hl_function" href="Game_8cpp.html#a04c2e1c30af14b6e8354d7a9be00e39c">CM_FindActorIndex</a>(shell));</div>
|
|
|
|
|
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno"> 304</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span> <a class="code hl_function" href="code__80005FD0_8c.html#a8d5e85372f25e4b12d62edcc131bf7ae">add_blue_shell_in_unexpired_actor_list</a>(<a class="code hl_function" href="Game_8cpp.html#a04c2e1c30af14b6e8354d7a9be00e39c">CM_FindActorIndex</a>(shell));</div>
|
|
|
|
|
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno"> 306</span> <a class="code hl_function" href="external_8c.html#a903d1c248a30cd68262a6833b9c0b112">func_800C9D80</a>(shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>, shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>, <a class="code hl_define" href="sounds_8h.html#a71288c0bb15b503d4570b441a05013f4">SOUND_ARG_LOAD</a>(0x51, 0x01, 0x80, 0x08));</div>
|
|
|
|
|
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno"> 307</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno"> 308</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno"> 309</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno"> 310</span> shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a> += 0x71C;</div>
|
|
|
|
|
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno"> 311</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a> > 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno"> 312</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba453f34a714854991280e3f087d9715af">MOVING_SHELL</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"> 313</span> <span class="comment">// Added condition so that CPUs do not make sound on item-use</span></div>
|
|
|
|
|
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span> <span class="keywordflow">if</span> ((<a class="code hl_variable" href="main_8c.html#a5f24aafa500466dbf1a7154ff7041fc2">gPlayers</a>[shell-><a class="code hl_variable" href="structShellActor.html#a77c5d4878d9a0867430326a1d63491dc">playerId</a>].type & <a class="code hl_define" href="defines_8h.html#ab30d6efeb8601088397fff50c25c2424">PLAYER_HUMAN</a>) != 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span> <a class="code hl_function" href="external_8c.html#a2be9efc97a92e19d02aaee90d676acc1">func_800C9060</a>(shell-><a class="code hl_variable" href="structShellActor.html#a77c5d4878d9a0867430326a1d63491dc">playerId</a>, <a class="code hl_define" href="sounds_8h.html#a71288c0bb15b503d4570b441a05013f4">SOUND_ARG_LOAD</a>(0x19, 0x00, 0x80, 0x04));</div>
|
|
|
|
|
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno"> 316</span> <a class="code hl_function" href="external_8c.html#a337fc3ab94ebb3293a85908229303ac8">func_800C90F4</a>(shell-><a class="code hl_variable" href="structShellActor.html#a77c5d4878d9a0867430326a1d63491dc">playerId</a>,</div>
|
|
|
|
|
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> (player-><a class="code hl_variable" href="structPlayer.html#a3c54f7cdfdf596fcb7500e4b56a3340d">characterId</a> * 0x10) + <a class="code hl_define" href="sounds_8h.html#a71288c0bb15b503d4570b441a05013f4">SOUND_ARG_LOAD</a>(0x29, 0x00, 0x80, 0x00));</div>
|
|
|
|
|
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span> <span class="keywordflow">if</span> (pad13 == <a class="code hl_enumvalue" href="actor__types_8h.html#a06ad3f803827afd107e7682c8c22d990a1cc14c146c0ad5e7ee9f89b46d93fbdc">ACTOR_RED_SHELL</a>) {</div>
|
|
|
|
|
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span> <a class="code hl_function" href="code__80005FD0_8c.html#a049aa28f9db56c36a8ea389644629029">add_red_shell_in_unexpired_actor_list</a>(<a class="code hl_function" href="Game_8cpp.html#a04c2e1c30af14b6e8354d7a9be00e39c">CM_FindActorIndex</a>(shell));</div>
|
|
|
|
|
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> <a class="code hl_function" href="code__80005FD0_8c.html#a8d5e85372f25e4b12d62edcc131bf7ae">add_blue_shell_in_unexpired_actor_list</a>(<a class="code hl_function" href="Game_8cpp.html#a04c2e1c30af14b6e8354d7a9be00e39c">CM_FindActorIndex</a>(shell));</div>
|
|
|
|
|
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno"> 323</span> <a class="code hl_function" href="external_8c.html#a903d1c248a30cd68262a6833b9c0b112">func_800C9D80</a>(shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>, shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>, <a class="code hl_define" href="sounds_8h.html#a71288c0bb15b503d4570b441a05013f4">SOUND_ARG_LOAD</a>(0x51, 0x01, 0x80, 0x08));</div>
|
|
|
|
|
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> == <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba453f34a714854991280e3f087d9715af">MOVING_SHELL</a>) {</div>
|
|
|
|
|
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno"> 328</span> shell-><a class="code hl_variable" href="structShellActor.html#adaca452aa94770d8d57f99cc1f3b7151">someTimer</a> = 0x001E;</div>
|
|
|
|
|
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span> height = 8.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span> <span class="keywordflow">if</span> (player-><a class="code hl_variable" href="structPlayer.html#a1eb7b22cb98924aa32fa909b969dee34">speed</a> > 8.0f) {</div>
|
|
|
|
|
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span> height = player-><a class="code hl_variable" href="structPlayer.html#a1eb7b22cb98924aa32fa909b969dee34">speed</a> * 1.2f;</div>
|
|
|
|
|
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span> somePosVel[0] = 0.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> somePosVel[1] = 0.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span> somePosVel[2] = height;</div>
|
|
|
|
|
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span> <a class="code hl_function" href="math__util_8c.html#a6270d7eb2d38b9c093e61da43b7d51ff">func_802B64C4</a>(somePosVel, (s16) (player-><a class="code hl_variable" href="structPlayer.html#a4fafb84477d127ff2a1b74331c904f3f">rotation</a>[1] + player-><a class="code hl_variable" href="structPlayer.html#a0dae7ee727c1fd1f3d07b2b7231e85cf">unk_0C0</a>));</div>
|
|
|
|
|
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"> 337</span> shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[0] = somePosVel[0];</div>
|
|
|
|
|
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span> shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[1] = somePosVel[1];</div>
|
|
|
|
|
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span> shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[2] = somePosVel[2];</div>
|
|
|
|
|
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno"> 340</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno"> 341</span> somePosVel[0] = <a class="code hl_function" href="math__util_8c.html#a19ed3bd78fd2d3e2bd0a29f6caf48545">sins</a>(shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a>) * 8.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno"> 342</span> somePosVel[1] = shell-><a class="code hl_variable" href="structShellActor.html#a610da60b5b38774fba6b6bb3076fd007">boundingBoxSize</a> - player-><a class="code hl_variable" href="structPlayer.html#a681f0fac4abe58cf5919dd4c6ac503d0">boundingBoxSize</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno"> 343</span> somePosVel[2] = <a class="code hl_function" href="math__util_8c.html#ae69cbf5c8d4b3b0dba2d7b4d4673689f">coss</a>(shell-><a class="code hl_variable" href="structShellActor.html#a10e3cd03ca10c5502ebe7af20829a565">rotAngle</a>) * 8.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno"> 344</span> <a class="code hl_function" href="math__util_8c.html#ad5bb0138c68b50f119d3cb7966f522b7">mtxf_translate_vec3f_mat3</a>(somePosVel, player-><a class="code hl_variable" href="structPlayer.html#a28df2c989598022073df6fc2425cbefe">orientationMatrix</a>);</div>
|
|
|
|
|
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span> shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[0] = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[0] + somePosVel[0];</div>
|
|
|
|
|
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"> 346</span> shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[1] = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[1] + somePosVel[1];</div>
|
|
|
|
|
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno"> 347</span> shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[2] = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[2] + somePosVel[2];</div>
|
|
|
|
|
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno"> 348</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno"> 349</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno"> 350</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba453f34a714854991280e3f087d9715af">MOVING_SHELL</a>:</div>
|
|
|
|
|
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno"> 351</span> player = &<a class="code hl_variable" href="main_8c.html#a5f24aafa500466dbf1a7154ff7041fc2">gPlayers</a>[shell-><a class="code hl_variable" href="structShellActor.html#a77c5d4878d9a0867430326a1d63491dc">playerId</a>];</div>
|
|
|
|
|
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno"> 352</span> shell-><a class="code hl_variable" href="structShellActor.html#adaca452aa94770d8d57f99cc1f3b7151">someTimer</a> -= 1;</div>
|
|
|
|
|
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno"> 353</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structShellActor.html#adaca452aa94770d8d57f99cc1f3b7151">someTimer</a> == 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span> shell-><a class="code hl_variable" href="structShellActor.html#a5368cbbb7b090d3f5abb520ca3ab9bf6">flags</a> &= 0xEFFF;</div>
|
|
|
|
|
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structShellActor.html#a6eb62ab515773b295e7d8c4f6c10ae1b">type</a> == <a class="code hl_enumvalue" href="actor__types_8h.html#a06ad3f803827afd107e7682c8c22d990a1bb766203677f7a6b6337a94f8f17f7e">ACTOR_BLUE_SPINY_SHELL</a>) {</div>
|
|
|
|
|
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno"> 356</span> shell-><a class="code hl_variable" href="structShellActor.html#ad503d4399dfef15a8aeb4cfec64ac155">targetPlayer</a> = <a class="code hl_variable" href="code__800029B0_8c.html#af041d75e08bc4d654b30e1c5c79550c9">gPlayerPositionLUT</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495bacbbf8ec958ded92542c807a249ab5663">BLUE_SHELL_LOCK_ON</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno"> 358</span> shell-><a class="code hl_variable" href="structShellActor.html#a6d1756d5e7cf11fdb35eec5ef86c6951">shellId</a> = 1000.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span> temp_v0 = <a class="code hl_variable" href="code__80005FD0_8c.html#aecaedcf25130d660c6c5885cb92f3259">gNearestPathPointByPlayerId</a>[player - <a class="code hl_variable" href="main_8c.html#a0204a9efe5c4b5e5ce5153086a5ccb49">gPlayerOne</a>] + 8;</div>
|
|
|
|
|
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"> 360</span> <span class="keywordflow">if</span> ((s32) <a class="code hl_variable" href="code__80005FD0_8c.html#a95ff1a706d5fb5bd43a94bb9737f5797">gSelectedPathCount</a> < temp_v0) {</div>
|
|
|
|
|
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"> 361</span> temp_v0 -= <a class="code hl_variable" href="code__80005FD0_8c.html#a95ff1a706d5fb5bd43a94bb9737f5797">gSelectedPathCount</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno"> 362</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno"> 363</span> shell-><a class="code hl_variable" href="structShellActor.html#af3da1448ac4320471aadbc7652ea81a5">pathIndex</a> = temp_v0;</div>
|
|
|
|
|
<div class="line"><a id="l00364" name="l00364"></a><span class="lineno"> 364</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="main_8c.html#afc00985679cbd41aa08a8fcc5925e438">gModeSelection</a> == <a class="code hl_define" href="defines_8h.html#a3f48cce4d2125604131fc7878460f44a">BATTLE</a>) {</div>
|
|
|
|
|
<div class="line"><a id="l00365" name="l00365"></a><span class="lineno"> 365</span> shell-><a class="code hl_variable" href="structShellActor.html#a6d1756d5e7cf11fdb35eec5ef86c6951">shellId</a> = 1000.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00366" name="l00366"></a><span class="lineno"> 366</span> shell-><a class="code hl_variable" href="structShellActor.html#ad503d4399dfef15a8aeb4cfec64ac155">targetPlayer</a> = <a class="code hl_function" href="blue__and__red__shells_2update_8inc_8c.html#a7e2174a63721c801f8a932d74e8c3be9">func_802B3FD0</a>(player, shell);</div>
|
|
|
|
|
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno"> 367</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structShellActor.html#ad503d4399dfef15a8aeb4cfec64ac155">targetPlayer</a> < 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno"> 368</span> shell-><a class="code hl_variable" href="structShellActor.html#a5368cbbb7b090d3f5abb520ca3ab9bf6">flags</a> = 0x8000;</div>
|
|
|
|
|
<div class="line"><a id="l00369" name="l00369"></a><span class="lineno"> 369</span> shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[1] = 3.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00370" name="l00370"></a><span class="lineno"> 370</span> shell-><a class="code hl_variable" href="structShellActor.html#af3da1448ac4320471aadbc7652ea81a5">pathIndex</a> = 0;</div>
|
|
|
|
|
<div class="line"><a id="l00371" name="l00371"></a><span class="lineno"> 371</span> shell-><a class="code hl_variable" href="structShellActor.html#adaca452aa94770d8d57f99cc1f3b7151">someTimer</a> = 0x003C;</div>
|
|
|
|
|
<div class="line"><a id="l00372" name="l00372"></a><span class="lineno"> 372</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba27fa834989e28bdd46500b6204a16f29">DESTROYED_SHELL</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno"> 373</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno"> 374</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495baed8383aa36b27a569d33434e6638551d">RED_SHELL_LOCK_ON</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno"> 375</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno"> 376</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno"> 377</span> <span class="keywordflow">if</span> (player-><a class="code hl_variable" href="structPlayer.html#af68a201da4cc5a0628252a352d147767">currentRank</a> == 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno"> 378</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495baa42e974f033d01764e1c170a632c43bc">TRIPLE_GREEN_SHELL</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno"> 379</span> shell-><a class="code hl_variable" href="structShellActor.html#adaca452aa94770d8d57f99cc1f3b7151">someTimer</a> = 0x0258;</div>
|
|
|
|
|
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno"> 380</span> temp_v0 = <a class="code hl_variable" href="code__80005FD0_8c.html#aecaedcf25130d660c6c5885cb92f3259">gNearestPathPointByPlayerId</a>[player - <a class="code hl_variable" href="main_8c.html#a0204a9efe5c4b5e5ce5153086a5ccb49">gPlayerOne</a>] + 8;</div>
|
|
|
|
|
<div class="line"><a id="l00381" name="l00381"></a><span class="lineno"> 381</span> <span class="keywordflow">if</span> ((s32) <a class="code hl_variable" href="code__80005FD0_8c.html#a95ff1a706d5fb5bd43a94bb9737f5797">gSelectedPathCount</a> < temp_v0) {</div>
|
|
|
|
|
<div class="line"><a id="l00382" name="l00382"></a><span class="lineno"> 382</span> temp_v0 -= <a class="code hl_variable" href="code__80005FD0_8c.html#a95ff1a706d5fb5bd43a94bb9737f5797">gSelectedPathCount</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00383" name="l00383"></a><span class="lineno"> 383</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00384" name="l00384"></a><span class="lineno"> 384</span> shell-><a class="code hl_variable" href="structShellActor.html#af3da1448ac4320471aadbc7652ea81a5">pathIndex</a> = temp_v0;</div>
|
|
|
|
|
<div class="line"><a id="l00385" name="l00385"></a><span class="lineno"> 385</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (player-><a class="code hl_variable" href="structPlayer.html#af68a201da4cc5a0628252a352d147767">currentRank</a> >= 5) {</div>
|
|
|
|
|
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno"> 386</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba7277793449f98cde9e41aeef89d77bba">GREEN_SHELL_HIT_A_RACER</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00387" name="l00387"></a><span class="lineno"> 387</span> shell-><a class="code hl_variable" href="structShellActor.html#a6d1756d5e7cf11fdb35eec5ef86c6951">shellId</a> = 1000.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno"> 388</span> shell-><a class="code hl_variable" href="structShellActor.html#ad503d4399dfef15a8aeb4cfec64ac155">targetPlayer</a> = <a class="code hl_variable" href="code__800029B0_8c.html#af041d75e08bc4d654b30e1c5c79550c9">gPlayerPositionLUT</a>[player-><a class="code hl_variable" href="structPlayer.html#af68a201da4cc5a0628252a352d147767">currentRank</a> - 1];</div>
|
|
|
|
|
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno"> 389</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno"> 390</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno"> 391</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno"> 392</span> shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[1] -= 0.5;</div>
|
|
|
|
|
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno"> 393</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[1] < -2.0f) {</div>
|
|
|
|
|
<div class="line"><a id="l00394" name="l00394"></a><span class="lineno"> 394</span> shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[1] = -2.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00395" name="l00395"></a><span class="lineno"> 395</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00396" name="l00396"></a><span class="lineno"> 396</span> origPos[0] = shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno"> 397</span> origPos[1] = shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[1];</div>
|
|
|
|
|
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno"> 398</span> origPos[2] = shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[2];</div>
|
|
|
|
|
<div class="line"><a id="l00399" name="l00399"></a><span class="lineno"> 399</span> shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[0] += shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno"> 400</span> shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[1] += shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[1];</div>
|
|
|
|
|
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno"> 401</span> shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[2] += shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[2];</div>
|
|
|
|
|
<div class="line"><a id="l00402" name="l00402"></a><span class="lineno"> 402</span> <a class="code hl_function" href="collision_8c.html#a79293dbdae52d290fdaf8dde9d5244ca">actor_terrain_collision</a>(&shell-><a class="code hl_variable" href="structShellActor.html#acf7c6324c79136005a8a16b0280862d4">unk30</a>, 4.0f, shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[0], shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[1], shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[2], origPos[0],</div>
|
|
|
|
|
<div class="line"><a id="l00403" name="l00403"></a><span class="lineno"> 403</span> origPos[1], origPos[2]);</div>
|
|
|
|
|
<div class="line"><a id="l00404" name="l00404"></a><span class="lineno"> 404</span> <a class="code hl_function" href="actors__extended_8c.html#a78e98c146f1f4dd6e3608016486172a4">func_802B4E30</a>((<span class="keyword">struct</span> <a class="code hl_struct" href="structActor.html">Actor</a>*) shell);</div>
|
|
|
|
|
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno"> 405</span> <a class="code hl_function" href="blue__and__red__shells_2update_8inc_8c.html#a334de9136224947ca20e7d31fb009a82">func_802B4104</a>(shell);</div>
|
|
|
|
|
<div class="line"><a id="l00406" name="l00406"></a><span class="lineno"> 406</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00407" name="l00407"></a><span class="lineno"> 407</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495baed8383aa36b27a569d33434e6638551d">RED_SHELL_LOCK_ON</a>:</div>
|
|
|
|
|
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno"> 408</span> <a class="code hl_function" href="blue__and__red__shells_2update_8inc_8c.html#a0cc339b71fb81e84d30eb55dc05b1a04">func_802B3E7C</a>(shell, &<a class="code hl_variable" href="main_8c.html#a5f24aafa500466dbf1a7154ff7041fc2">gPlayers</a>[shell->targetPlayer]);</div>
|
|
|
|
|
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno"> 409</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno"> 410</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495baa42e974f033d01764e1c170a632c43bc">TRIPLE_GREEN_SHELL</a>:</div>
|
|
|
|
|
<div class="line"><a id="l00411" name="l00411"></a><span class="lineno"> 411</span> <a class="code hl_function" href="blue__and__red__shells_2update_8inc_8c.html#a10550a4f6cb14493d6b16ac44a3c9484">func_802B3B44</a>(shell);</div>
|
|
|
|
|
<div class="line"><a id="l00412" name="l00412"></a><span class="lineno"> 412</span> <span class="keywordflow">if</span> (shell->someTimer == 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno"> 413</span> <span class="keywordflow">if</span> ((shell-><a class="code hl_variable" href="structActor.html#af49bb0c1202a06dc594529a2e77249c6">flags</a> & 0xF) == 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno"> 414</span> <a class="code hl_function" href="actors_8c.html#a53268aa601911d56424ff08fb3395bcb">destroy_destructable_actor</a>((<span class="keyword">struct</span> <a class="code hl_struct" href="structActor.html">Actor</a>*) shell);</div>
|
|
|
|
|
<div class="line"><a id="l00415" name="l00415"></a><span class="lineno"> 415</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00416" name="l00416"></a><span class="lineno"> 416</span> shell->someTimer -= 1;</div>
|
|
|
|
|
<div class="line"><a id="l00417" name="l00417"></a><span class="lineno"> 417</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00418" name="l00418"></a><span class="lineno"> 418</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00419" name="l00419"></a><span class="lineno"> 419</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00420" name="l00420"></a><span class="lineno"> 420</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba7277793449f98cde9e41aeef89d77bba">GREEN_SHELL_HIT_A_RACER</a>:</div>
|
|
|
|
|
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno"> 421</span> <a class="code hl_function" href="blue__and__red__shells_2update_8inc_8c.html#a10550a4f6cb14493d6b16ac44a3c9484">func_802B3B44</a>(shell);</div>
|
|
|
|
|
<div class="line"><a id="l00422" name="l00422"></a><span class="lineno"> 422</span> player = &<a class="code hl_variable" href="main_8c.html#a5f24aafa500466dbf1a7154ff7041fc2">gPlayers</a>[shell->targetPlayer];</div>
|
|
|
|
|
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno"> 423</span> height = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00424" name="l00424"></a><span class="lineno"> 424</span> height -= shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00425" name="l00425"></a><span class="lineno"> 425</span> temp_f2 = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[2];</div>
|
|
|
|
|
<div class="line"><a id="l00426" name="l00426"></a><span class="lineno"> 426</span> temp_f2 -= shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[2];</div>
|
|
|
|
|
<div class="line"><a id="l00427" name="l00427"></a><span class="lineno"> 427</span> <span class="keywordflow">if</span> (((height * height) + (temp_f2 * temp_f2)) < 40000.0f) {</div>
|
|
|
|
|
<div class="line"><a id="l00428" name="l00428"></a><span class="lineno"> 428</span> shell-><a class="code hl_variable" href="structActor.html#a8fedca3871be05588e5263f4a184ad5d">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495baed8383aa36b27a569d33434e6638551d">RED_SHELL_LOCK_ON</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00429" name="l00429"></a><span class="lineno"> 429</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00430" name="l00430"></a><span class="lineno"> 430</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00431" name="l00431"></a><span class="lineno"> 431</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba5473d1b5b6530e1e4bf2c70d32b7bf68">TRIPLE_RED_SHELL</a>:</div>
|
|
|
|
|
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno"> 432</span> player = &<a class="code hl_variable" href="main_8c.html#a5f24aafa500466dbf1a7154ff7041fc2">gPlayers</a>[shell->playerId];</div>
|
|
|
|
|
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno"> 433</span> parent = (<a class="code hl_struct" href="structTripleShellParent.html">TripleShellParent</a>*) <a class="code hl_define" href="actor__types_8h.html#aed038e4e6a4801ef264d0f74731ebdf8">GET_ACTOR</a>(shell->parentIndex);</div>
|
|
|
|
|
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno"> 434</span> <span class="keywordflow">if</span> (parent-><a class="code hl_variable" href="structTripleShellParent.html#a4fcf64256c3c06258809ee9a0871f6b6">type</a> != <a class="code hl_enumvalue" href="actor__types_8h.html#a06ad3f803827afd107e7682c8c22d990a325a39a80ee5c1af000a72187c8da86d">ACTOR_TRIPLE_RED_SHELL</a>) {</div>
|
|
|
|
|
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno"> 435</span> <a class="code hl_function" href="actors_8c.html#a53268aa601911d56424ff08fb3395bcb">destroy_destructable_actor</a>((<span class="keyword">struct</span> <a class="code hl_struct" href="structActor.html">Actor</a>*) shell);</div>
|
|
|
|
|
<div class="line"><a id="l00436" name="l00436"></a><span class="lineno"> 436</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00437" name="l00437"></a><span class="lineno"> 437</span> shell->rotAngle += parent-><a class="code hl_variable" href="structTripleShellParent.html#a31471d3847195ba9618a684764b96043">rotVelocity</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00438" name="l00438"></a><span class="lineno"> 438</span> somePosVel[0] = <a class="code hl_function" href="math__util_8c.html#a19ed3bd78fd2d3e2bd0a29f6caf48545">sins</a>(shell->rotAngle) * 8.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00439" name="l00439"></a><span class="lineno"> 439</span> somePosVel[1] = shell-><a class="code hl_variable" href="structActor.html#afa5dea9480abaa994c912de779986ef9">boundingBoxSize</a> - player-><a class="code hl_variable" href="structPlayer.html#a681f0fac4abe58cf5919dd4c6ac503d0">boundingBoxSize</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00440" name="l00440"></a><span class="lineno"> 440</span> somePosVel[2] = <a class="code hl_function" href="math__util_8c.html#ae69cbf5c8d4b3b0dba2d7b4d4673689f">coss</a>(shell->rotAngle) * 8.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00441" name="l00441"></a><span class="lineno"> 441</span> <a class="code hl_function" href="math__util_8c.html#ad5bb0138c68b50f119d3cb7966f522b7">mtxf_translate_vec3f_mat3</a>(somePosVel, player-><a class="code hl_variable" href="structPlayer.html#a28df2c989598022073df6fc2425cbefe">orientationMatrix</a>);</div>
|
|
|
|
|
<div class="line"><a id="l00442" name="l00442"></a><span class="lineno"> 442</span> origPos[0] = shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00443" name="l00443"></a><span class="lineno"> 443</span> origPos[1] = shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[1];</div>
|
|
|
|
|
<div class="line"><a id="l00444" name="l00444"></a><span class="lineno"> 444</span> origPos[2] = shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[2];</div>
|
|
|
|
|
<div class="line"><a id="l00445" name="l00445"></a><span class="lineno"> 445</span> shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[0] = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[0] + somePosVel[0];</div>
|
|
|
|
|
<div class="line"><a id="l00446" name="l00446"></a><span class="lineno"> 446</span> shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[1] = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[1] + somePosVel[1];</div>
|
|
|
|
|
<div class="line"><a id="l00447" name="l00447"></a><span class="lineno"> 447</span> shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[2] = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[2] + somePosVel[2];</div>
|
|
|
|
|
<div class="line"><a id="l00448" name="l00448"></a><span class="lineno"> 448</span> <a class="code hl_function" href="collision_8c.html#a79293dbdae52d290fdaf8dde9d5244ca">actor_terrain_collision</a>(&shell-><a class="code hl_variable" href="structActor.html#acd34f66c2555a2b2dba239da10475057">unk30</a>, 4.0f, shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[0], shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[1], shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[2], origPos[0],</div>
|
|
|
|
|
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno"> 449</span> origPos[1], origPos[2]);</div>
|
|
|
|
|
<div class="line"><a id="l00450" name="l00450"></a><span class="lineno"> 450</span> <a class="code hl_function" href="actors__extended_8c.html#a78e98c146f1f4dd6e3608016486172a4">func_802B4E30</a>((<span class="keyword">struct</span> <a class="code hl_struct" href="structActor.html">Actor</a>*) shell);</div>
|
|
|
|
|
<div class="line"><a id="l00451" name="l00451"></a><span class="lineno"> 451</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00452" name="l00452"></a><span class="lineno"> 452</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00453" name="l00453"></a><span class="lineno"> 453</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba27fa834989e28bdd46500b6204a16f29">DESTROYED_SHELL</a>:</div>
|
|
|
|
|
<div class="line"><a id="l00454" name="l00454"></a><span class="lineno"> 454</span> shell-><a class="code hl_variable" href="structActor.html#abb823b9528b91c1bc292f8729803785a">velocity</a>[1] -= 0.3f;</div>
|
|
|
|
|
<div class="line"><a id="l00455" name="l00455"></a><span class="lineno"> 455</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structActor.html#abb823b9528b91c1bc292f8729803785a">velocity</a>[1] < -5.0f) {</div>
|
|
|
|
|
<div class="line"><a id="l00456" name="l00456"></a><span class="lineno"> 456</span> shell-><a class="code hl_variable" href="structActor.html#abb823b9528b91c1bc292f8729803785a">velocity</a>[1] = -5.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00457" name="l00457"></a><span class="lineno"> 457</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00458" name="l00458"></a><span class="lineno"> 458</span> shell->rotAngle += 0x5B0;</div>
|
|
|
|
|
<div class="line"><a id="l00459" name="l00459"></a><span class="lineno"> 459</span> shell->someTimer -= 1;</div>
|
|
|
|
|
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno"> 460</span> shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[1] += shell-><a class="code hl_variable" href="structActor.html#abb823b9528b91c1bc292f8729803785a">velocity</a>[1];</div>
|
|
|
|
|
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno"> 461</span> <span class="keywordflow">if</span> (shell->someTimer == 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00462" name="l00462"></a><span class="lineno"> 462</span> <a class="code hl_function" href="actors_8c.html#a694ec6ef7548b8618aeb35c038d3a9b9">destroy_actor</a>((<span class="keyword">struct</span> <a class="code hl_struct" href="structActor.html">Actor</a>*) shell);</div>
|
|
|
|
|
<div class="line"><a id="l00463" name="l00463"></a><span class="lineno"> 463</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno"> 464</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno"> 465</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495bacbbf8ec958ded92542c807a249ab5663">BLUE_SHELL_LOCK_ON</a>:</div>
|
|
|
|
|
<div class="line"><a id="l00466" name="l00466"></a><span class="lineno"> 466</span> <a class="code hl_function" href="blue__and__red__shells_2update_8inc_8c.html#a10550a4f6cb14493d6b16ac44a3c9484">func_802B3B44</a>(shell);</div>
|
|
|
|
|
<div class="line"><a id="l00467" name="l00467"></a><span class="lineno"> 467</span> shell->targetPlayer = <a class="code hl_variable" href="code__800029B0_8c.html#af041d75e08bc4d654b30e1c5c79550c9">gPlayerPositionLUT</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00468" name="l00468"></a><span class="lineno"> 468</span> player = &<a class="code hl_variable" href="main_8c.html#a5f24aafa500466dbf1a7154ff7041fc2">gPlayers</a>[<a class="code hl_variable" href="code__800029B0_8c.html#af041d75e08bc4d654b30e1c5c79550c9">gPlayerPositionLUT</a>[0]];</div>
|
|
|
|
|
<div class="line"><a id="l00469" name="l00469"></a><span class="lineno"> 469</span> height = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00470" name="l00470"></a><span class="lineno"> 470</span> height -= shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00471" name="l00471"></a><span class="lineno"> 471</span> temp_f2 = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[2];</div>
|
|
|
|
|
<div class="line"><a id="l00472" name="l00472"></a><span class="lineno"> 472</span> temp_f2 -= shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[2];</div>
|
|
|
|
|
<div class="line"><a id="l00473" name="l00473"></a><span class="lineno"> 473</span> <span class="keywordflow">if</span> (((height * height) + (temp_f2 * temp_f2)) < 40000.0f) {</div>
|
|
|
|
|
<div class="line"><a id="l00474" name="l00474"></a><span class="lineno"> 474</span> shell-><a class="code hl_variable" href="structActor.html#a8fedca3871be05588e5263f4a184ad5d">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba5bedeedba66ded3f9a8f54f73bc2e6fa">BLUE_SHELL_TARGET_ELIMINATED</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00475" name="l00475"></a><span class="lineno"> 475</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00476" name="l00476"></a><span class="lineno"> 476</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00477" name="l00477"></a><span class="lineno"> 477</span> <span class="keywordflow">case</span> 9:</div>
|
|
|
|
|
<div class="line"><a id="l00478" name="l00478"></a><span class="lineno"> 478</span> <a class="code hl_function" href="blue__and__red__shells_2update_8inc_8c.html#a0cc339b71fb81e84d30eb55dc05b1a04">func_802B3E7C</a>(shell, &<a class="code hl_variable" href="main_8c.html#a5f24aafa500466dbf1a7154ff7041fc2">gPlayers</a>[shell->targetPlayer]);</div>
|
|
|
|
|
<div class="line"><a id="l00479" name="l00479"></a><span class="lineno"> 479</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00480" name="l00480"></a><span class="lineno"> 480</span> <span class="keywordflow">default</span>:</div>
|
|
|
|
|
<div class="line"><a id="l00481" name="l00481"></a><span class="lineno"> 481</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno"> 482</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00483" name="l00483"></a><span class="lineno"> 483</span>}</div>
|
|
|
|
|
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno"> 388</span> temp_v0 = <a class="code hl_variable" href="code__80005FD0_8c.html#aecaedcf25130d660c6c5885cb92f3259">gNearestPathPointByPlayerId</a>[player - <a class="code hl_variable" href="main_8c.html#a0204a9efe5c4b5e5ce5153086a5ccb49">gPlayerOne</a>] + 8;</div>
|
|
|
|
|
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno"> 389</span> <span class="keywordflow">if</span> ((s32) <a class="code hl_variable" href="code__80005FD0_8c.html#a95ff1a706d5fb5bd43a94bb9737f5797">gSelectedPathCount</a> < temp_v0) {</div>
|
|
|
|
|
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno"> 390</span> temp_v0 -= <a class="code hl_variable" href="code__80005FD0_8c.html#a95ff1a706d5fb5bd43a94bb9737f5797">gSelectedPathCount</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno"> 391</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno"> 392</span> shell-><a class="code hl_variable" href="structShellActor.html#af3da1448ac4320471aadbc7652ea81a5">pathIndex</a> = temp_v0;</div>
|
|
|
|
|
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno"> 393</span> shell-><a class="code hl_variable" href="structShellActor.html#ad503d4399dfef15a8aeb4cfec64ac155">targetPlayer</a> = <a class="code hl_variable" href="code__800029B0_8c.html#af041d75e08bc4d654b30e1c5c79550c9">gPlayerPositionLUT</a>[player-><a class="code hl_variable" href="structPlayer.html#af68a201da4cc5a0628252a352d147767">currentRank</a> - 1];</div>
|
|
|
|
|
<div class="line"><a id="l00394" name="l00394"></a><span class="lineno"> 394</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00395" name="l00395"></a><span class="lineno"> 395</span> shell-><a class="code hl_variable" href="structShellActor.html#a62b51240387f83c669e3e279aaecbed8">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495baed8383aa36b27a569d33434e6638551d">RED_SHELL_LOCK_ON</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00396" name="l00396"></a><span class="lineno"> 396</span> shell-><a class="code hl_variable" href="structShellActor.html#a6d1756d5e7cf11fdb35eec5ef86c6951">shellId</a> = 1000.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno"> 397</span> shell-><a class="code hl_variable" href="structShellActor.html#ad503d4399dfef15a8aeb4cfec64ac155">targetPlayer</a> = <a class="code hl_variable" href="code__800029B0_8c.html#af041d75e08bc4d654b30e1c5c79550c9">gPlayerPositionLUT</a>[player-><a class="code hl_variable" href="structPlayer.html#af68a201da4cc5a0628252a352d147767">currentRank</a> - 1];</div>
|
|
|
|
|
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno"> 398</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00399" name="l00399"></a><span class="lineno"> 399</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno"> 400</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno"> 401</span> shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[1] -= 0.5;</div>
|
|
|
|
|
<div class="line"><a id="l00402" name="l00402"></a><span class="lineno"> 402</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[1] < -2.0f) {</div>
|
|
|
|
|
<div class="line"><a id="l00403" name="l00403"></a><span class="lineno"> 403</span> shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[1] = -2.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00404" name="l00404"></a><span class="lineno"> 404</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno"> 405</span> origPos[0] = shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00406" name="l00406"></a><span class="lineno"> 406</span> origPos[1] = shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[1];</div>
|
|
|
|
|
<div class="line"><a id="l00407" name="l00407"></a><span class="lineno"> 407</span> origPos[2] = shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[2];</div>
|
|
|
|
|
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno"> 408</span> shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[0] += shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno"> 409</span> shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[1] += shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[1];</div>
|
|
|
|
|
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno"> 410</span> shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[2] += shell-><a class="code hl_variable" href="structShellActor.html#a89a884c6ba2b5b022b7dcb5e74d50910">velocity</a>[2];</div>
|
|
|
|
|
<div class="line"><a id="l00411" name="l00411"></a><span class="lineno"> 411</span> <a class="code hl_function" href="collision_8c.html#a79293dbdae52d290fdaf8dde9d5244ca">actor_terrain_collision</a>(&shell-><a class="code hl_variable" href="structShellActor.html#acf7c6324c79136005a8a16b0280862d4">unk30</a>, 4.0f, shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[0], shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[1], shell-><a class="code hl_variable" href="structShellActor.html#acd41b01d05450b6a241a81907bb4fbb8">pos</a>[2], origPos[0],</div>
|
|
|
|
|
<div class="line"><a id="l00412" name="l00412"></a><span class="lineno"> 412</span> origPos[1], origPos[2]);</div>
|
|
|
|
|
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno"> 413</span> <a class="code hl_function" href="actors__extended_8c.html#a78e98c146f1f4dd6e3608016486172a4">func_802B4E30</a>((<span class="keyword">struct</span> <a class="code hl_struct" href="structActor.html">Actor</a>*) shell);</div>
|
|
|
|
|
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno"> 414</span> <a class="code hl_function" href="blue__and__red__shells_2update_8inc_8c.html#a334de9136224947ca20e7d31fb009a82">func_802B4104</a>(shell);</div>
|
|
|
|
|
<div class="line"><a id="l00415" name="l00415"></a><span class="lineno"> 415</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00416" name="l00416"></a><span class="lineno"> 416</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495baed8383aa36b27a569d33434e6638551d">RED_SHELL_LOCK_ON</a>:</div>
|
|
|
|
|
<div class="line"><a id="l00417" name="l00417"></a><span class="lineno"> 417</span> <a class="code hl_function" href="blue__and__red__shells_2update_8inc_8c.html#a0cc339b71fb81e84d30eb55dc05b1a04">func_802B3E7C</a>(shell, &<a class="code hl_variable" href="main_8c.html#a5f24aafa500466dbf1a7154ff7041fc2">gPlayers</a>[shell->targetPlayer]);</div>
|
|
|
|
|
<div class="line"><a id="l00418" name="l00418"></a><span class="lineno"> 418</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00419" name="l00419"></a><span class="lineno"> 419</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495baa42e974f033d01764e1c170a632c43bc">TRIPLE_GREEN_SHELL</a>:</div>
|
|
|
|
|
<div class="line"><a id="l00420" name="l00420"></a><span class="lineno"> 420</span> <a class="code hl_function" href="blue__and__red__shells_2update_8inc_8c.html#a10550a4f6cb14493d6b16ac44a3c9484">func_802B3B44</a>(shell);</div>
|
|
|
|
|
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno"> 421</span> <span class="keywordflow">if</span> (shell->someTimer == 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00422" name="l00422"></a><span class="lineno"> 422</span> <span class="keywordflow">if</span> ((shell-><a class="code hl_variable" href="structActor.html#af49bb0c1202a06dc594529a2e77249c6">flags</a> & 0xF) == 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno"> 423</span> <a class="code hl_function" href="actors_8c.html#a53268aa601911d56424ff08fb3395bcb">destroy_destructable_actor</a>((<span class="keyword">struct</span> <a class="code hl_struct" href="structActor.html">Actor</a>*) shell);</div>
|
|
|
|
|
<div class="line"><a id="l00424" name="l00424"></a><span class="lineno"> 424</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00425" name="l00425"></a><span class="lineno"> 425</span> shell->someTimer -= 1;</div>
|
|
|
|
|
<div class="line"><a id="l00426" name="l00426"></a><span class="lineno"> 426</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00427" name="l00427"></a><span class="lineno"> 427</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00428" name="l00428"></a><span class="lineno"> 428</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00429" name="l00429"></a><span class="lineno"> 429</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba7277793449f98cde9e41aeef89d77bba">GREEN_SHELL_HIT_A_RACER</a>:</div>
|
|
|
|
|
<div class="line"><a id="l00430" name="l00430"></a><span class="lineno"> 430</span> <a class="code hl_function" href="blue__and__red__shells_2update_8inc_8c.html#a10550a4f6cb14493d6b16ac44a3c9484">func_802B3B44</a>(shell);</div>
|
|
|
|
|
<div class="line"><a id="l00431" name="l00431"></a><span class="lineno"> 431</span> player = &<a class="code hl_variable" href="main_8c.html#a5f24aafa500466dbf1a7154ff7041fc2">gPlayers</a>[shell->targetPlayer];</div>
|
|
|
|
|
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno"> 432</span> height = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno"> 433</span> height -= shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno"> 434</span> temp_f2 = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[2];</div>
|
|
|
|
|
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno"> 435</span> temp_f2 -= shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[2];</div>
|
|
|
|
|
<div class="line"><a id="l00436" name="l00436"></a><span class="lineno"> 436</span> <span class="keywordflow">if</span> (((height * height) + (temp_f2 * temp_f2)) < 40000.0f) {</div>
|
|
|
|
|
<div class="line"><a id="l00437" name="l00437"></a><span class="lineno"> 437</span> shell-><a class="code hl_variable" href="structActor.html#a8fedca3871be05588e5263f4a184ad5d">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495baed8383aa36b27a569d33434e6638551d">RED_SHELL_LOCK_ON</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00438" name="l00438"></a><span class="lineno"> 438</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00439" name="l00439"></a><span class="lineno"> 439</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00440" name="l00440"></a><span class="lineno"> 440</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba5473d1b5b6530e1e4bf2c70d32b7bf68">TRIPLE_RED_SHELL</a>:</div>
|
|
|
|
|
<div class="line"><a id="l00441" name="l00441"></a><span class="lineno"> 441</span> player = &<a class="code hl_variable" href="main_8c.html#a5f24aafa500466dbf1a7154ff7041fc2">gPlayers</a>[shell->playerId];</div>
|
|
|
|
|
<div class="line"><a id="l00442" name="l00442"></a><span class="lineno"> 442</span> parent = (<a class="code hl_struct" href="structTripleShellParent.html">TripleShellParent</a>*) <a class="code hl_define" href="actor__types_8h.html#aed038e4e6a4801ef264d0f74731ebdf8">GET_ACTOR</a>(shell->parentIndex);</div>
|
|
|
|
|
<div class="line"><a id="l00443" name="l00443"></a><span class="lineno"> 443</span> <span class="keywordflow">if</span> (parent-><a class="code hl_variable" href="structTripleShellParent.html#a4fcf64256c3c06258809ee9a0871f6b6">type</a> != <a class="code hl_enumvalue" href="actor__types_8h.html#a06ad3f803827afd107e7682c8c22d990a325a39a80ee5c1af000a72187c8da86d">ACTOR_TRIPLE_RED_SHELL</a>) {</div>
|
|
|
|
|
<div class="line"><a id="l00444" name="l00444"></a><span class="lineno"> 444</span> <a class="code hl_function" href="actors_8c.html#a53268aa601911d56424ff08fb3395bcb">destroy_destructable_actor</a>((<span class="keyword">struct</span> <a class="code hl_struct" href="structActor.html">Actor</a>*) shell);</div>
|
|
|
|
|
<div class="line"><a id="l00445" name="l00445"></a><span class="lineno"> 445</span> } <span class="keywordflow">else</span> {</div>
|
|
|
|
|
<div class="line"><a id="l00446" name="l00446"></a><span class="lineno"> 446</span> shell->rotAngle += parent-><a class="code hl_variable" href="structTripleShellParent.html#a31471d3847195ba9618a684764b96043">rotVelocity</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00447" name="l00447"></a><span class="lineno"> 447</span> somePosVel[0] = <a class="code hl_function" href="math__util_8c.html#a19ed3bd78fd2d3e2bd0a29f6caf48545">sins</a>(shell->rotAngle) * 8.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00448" name="l00448"></a><span class="lineno"> 448</span> somePosVel[1] = shell-><a class="code hl_variable" href="structActor.html#afa5dea9480abaa994c912de779986ef9">boundingBoxSize</a> - player-><a class="code hl_variable" href="structPlayer.html#a681f0fac4abe58cf5919dd4c6ac503d0">boundingBoxSize</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno"> 449</span> somePosVel[2] = <a class="code hl_function" href="math__util_8c.html#ae69cbf5c8d4b3b0dba2d7b4d4673689f">coss</a>(shell->rotAngle) * 8.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00450" name="l00450"></a><span class="lineno"> 450</span> <a class="code hl_function" href="math__util_8c.html#ad5bb0138c68b50f119d3cb7966f522b7">mtxf_translate_vec3f_mat3</a>(somePosVel, player-><a class="code hl_variable" href="structPlayer.html#a28df2c989598022073df6fc2425cbefe">orientationMatrix</a>);</div>
|
|
|
|
|
<div class="line"><a id="l00451" name="l00451"></a><span class="lineno"> 451</span> origPos[0] = shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00452" name="l00452"></a><span class="lineno"> 452</span> origPos[1] = shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[1];</div>
|
|
|
|
|
<div class="line"><a id="l00453" name="l00453"></a><span class="lineno"> 453</span> origPos[2] = shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[2];</div>
|
|
|
|
|
<div class="line"><a id="l00454" name="l00454"></a><span class="lineno"> 454</span> shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[0] = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[0] + somePosVel[0];</div>
|
|
|
|
|
<div class="line"><a id="l00455" name="l00455"></a><span class="lineno"> 455</span> shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[1] = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[1] + somePosVel[1];</div>
|
|
|
|
|
<div class="line"><a id="l00456" name="l00456"></a><span class="lineno"> 456</span> shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[2] = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[2] + somePosVel[2];</div>
|
|
|
|
|
<div class="line"><a id="l00457" name="l00457"></a><span class="lineno"> 457</span> <a class="code hl_function" href="collision_8c.html#a79293dbdae52d290fdaf8dde9d5244ca">actor_terrain_collision</a>(&shell-><a class="code hl_variable" href="structActor.html#acd34f66c2555a2b2dba239da10475057">unk30</a>, 4.0f, shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[0], shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[1], shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[2], origPos[0],</div>
|
|
|
|
|
<div class="line"><a id="l00458" name="l00458"></a><span class="lineno"> 458</span> origPos[1], origPos[2]);</div>
|
|
|
|
|
<div class="line"><a id="l00459" name="l00459"></a><span class="lineno"> 459</span> <a class="code hl_function" href="actors__extended_8c.html#a78e98c146f1f4dd6e3608016486172a4">func_802B4E30</a>((<span class="keyword">struct</span> <a class="code hl_struct" href="structActor.html">Actor</a>*) shell);</div>
|
|
|
|
|
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno"> 460</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno"> 461</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00462" name="l00462"></a><span class="lineno"> 462</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba27fa834989e28bdd46500b6204a16f29">DESTROYED_SHELL</a>:</div>
|
|
|
|
|
<div class="line"><a id="l00463" name="l00463"></a><span class="lineno"> 463</span> shell-><a class="code hl_variable" href="structActor.html#abb823b9528b91c1bc292f8729803785a">velocity</a>[1] -= 0.3f;</div>
|
|
|
|
|
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno"> 464</span> <span class="keywordflow">if</span> (shell-><a class="code hl_variable" href="structActor.html#abb823b9528b91c1bc292f8729803785a">velocity</a>[1] < -5.0f) {</div>
|
|
|
|
|
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno"> 465</span> shell-><a class="code hl_variable" href="structActor.html#abb823b9528b91c1bc292f8729803785a">velocity</a>[1] = -5.0f;</div>
|
|
|
|
|
<div class="line"><a id="l00466" name="l00466"></a><span class="lineno"> 466</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00467" name="l00467"></a><span class="lineno"> 467</span> shell->rotAngle += 0x5B0;</div>
|
|
|
|
|
<div class="line"><a id="l00468" name="l00468"></a><span class="lineno"> 468</span> shell->someTimer -= 1;</div>
|
|
|
|
|
<div class="line"><a id="l00469" name="l00469"></a><span class="lineno"> 469</span> shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[1] += shell-><a class="code hl_variable" href="structActor.html#abb823b9528b91c1bc292f8729803785a">velocity</a>[1];</div>
|
|
|
|
|
<div class="line"><a id="l00470" name="l00470"></a><span class="lineno"> 470</span> <span class="keywordflow">if</span> (shell->someTimer == 0) {</div>
|
|
|
|
|
<div class="line"><a id="l00471" name="l00471"></a><span class="lineno"> 471</span> <a class="code hl_function" href="actors_8c.html#a694ec6ef7548b8618aeb35c038d3a9b9">destroy_actor</a>((<span class="keyword">struct</span> <a class="code hl_struct" href="structActor.html">Actor</a>*) shell);</div>
|
|
|
|
|
<div class="line"><a id="l00472" name="l00472"></a><span class="lineno"> 472</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00473" name="l00473"></a><span class="lineno"> 473</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00474" name="l00474"></a><span class="lineno"> 474</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495bacbbf8ec958ded92542c807a249ab5663">BLUE_SHELL_LOCK_ON</a>:</div>
|
|
|
|
|
<div class="line"><a id="l00475" name="l00475"></a><span class="lineno"> 475</span> <a class="code hl_function" href="blue__and__red__shells_2update_8inc_8c.html#a10550a4f6cb14493d6b16ac44a3c9484">func_802B3B44</a>(shell);</div>
|
|
|
|
|
<div class="line"><a id="l00476" name="l00476"></a><span class="lineno"> 476</span> shell->targetPlayer = <a class="code hl_variable" href="code__800029B0_8c.html#af041d75e08bc4d654b30e1c5c79550c9">gPlayerPositionLUT</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00477" name="l00477"></a><span class="lineno"> 477</span> player = &<a class="code hl_variable" href="main_8c.html#a5f24aafa500466dbf1a7154ff7041fc2">gPlayers</a>[<a class="code hl_variable" href="code__800029B0_8c.html#af041d75e08bc4d654b30e1c5c79550c9">gPlayerPositionLUT</a>[0]];</div>
|
|
|
|
|
<div class="line"><a id="l00478" name="l00478"></a><span class="lineno"> 478</span> height = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00479" name="l00479"></a><span class="lineno"> 479</span> height -= shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[0];</div>
|
|
|
|
|
<div class="line"><a id="l00480" name="l00480"></a><span class="lineno"> 480</span> temp_f2 = player-><a class="code hl_variable" href="structPlayer.html#aff7447121b2e0bd051e58a276fce7b36">pos</a>[2];</div>
|
|
|
|
|
<div class="line"><a id="l00481" name="l00481"></a><span class="lineno"> 481</span> temp_f2 -= shell-><a class="code hl_variable" href="structActor.html#afa1455dbf1a4698584ed8c501439692f">pos</a>[2];</div>
|
|
|
|
|
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno"> 482</span> <span class="keywordflow">if</span> (((height * height) + (temp_f2 * temp_f2)) < 40000.0f) {</div>
|
|
|
|
|
<div class="line"><a id="l00483" name="l00483"></a><span class="lineno"> 483</span> shell-><a class="code hl_variable" href="structActor.html#a8fedca3871be05588e5263f4a184ad5d">state</a> = <a class="code hl_enumvalue" href="actor__types_8h.html#ac01c8e97d91d8f2968ca1f8d4eb0495ba5bedeedba66ded3f9a8f54f73bc2e6fa">BLUE_SHELL_TARGET_ELIMINATED</a>;</div>
|
|
|
|
|
<div class="line"><a id="l00484" name="l00484"></a><span class="lineno"> 484</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00485" name="l00485"></a><span class="lineno"> 485</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00486" name="l00486"></a><span class="lineno"> 486</span> <span class="keywordflow">case</span> 9:</div>
|
|
|
|
|
<div class="line"><a id="l00487" name="l00487"></a><span class="lineno"> 487</span> <a class="code hl_function" href="blue__and__red__shells_2update_8inc_8c.html#a0cc339b71fb81e84d30eb55dc05b1a04">func_802B3E7C</a>(shell, &<a class="code hl_variable" href="main_8c.html#a5f24aafa500466dbf1a7154ff7041fc2">gPlayers</a>[shell->targetPlayer]);</div>
|
|
|
|
|
<div class="line"><a id="l00488" name="l00488"></a><span class="lineno"> 488</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00489" name="l00489"></a><span class="lineno"> 489</span> <span class="keywordflow">default</span>:</div>
|
|
|
|
|
<div class="line"><a id="l00490" name="l00490"></a><span class="lineno"> 490</span> <span class="keywordflow">break</span>;</div>
|
|
|
|
|
<div class="line"><a id="l00491" name="l00491"></a><span class="lineno"> 491</span> }</div>
|
|
|
|
|
<div class="line"><a id="l00492" name="l00492"></a><span class="lineno"> 492</span>}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ttc" id="aGame_8cpp_html_a04c2e1c30af14b6e8354d7a9be00e39c"><div class="ttname"><a href="Game_8cpp.html#a04c2e1c30af14b6e8354d7a9be00e39c">CM_FindActorIndex</a></div><div class="ttdeci">size_t CM_FindActorIndex(Actor *actor)</div><div class="ttdef"><b>Definition</b> Game.cpp:619</div></div>
|
|
|
|
|
<div class="ttc" id="aGame_8h_html"><div class="ttname"><a href="Game_8h.html">Game.h</a></div></div>
|
|
|
|
|