Template:Object infobox 2: Difference between revisions
Jump to navigation
Jump to search
(fix link color) |
m (forgot to remove part of an if) |
||
(10 intermediate revisions by 4 users not shown) | |||
Line 6: | Line 6: | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{group|}}}{{{tangibility|}}}{{{draw|}}}|{{!}}align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''<span style="color:white;">Technical Constants</span>''' | {{#if:{{{group|}}}{{{group2|}}}{{{modelID|}}}{{{tangibility|}}}{{{draw|}}}|{{!}}align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''<span style="color:white;">Technical Constants</span>''' | ||
|}} | |}} | ||
|- | |- | ||
{{#if: {{{group|}}} | | {{#if: {{{group|}}} | | ||
{{!}} '''[[Object Group]]''' {{!!}} {{{group}}} | {{!}} '''[[Object Group]]''' {{!!}} {{{group}}} | ||
{{!}}-}} | |||
|- | |||
{{#if: {{{group2|}}} | | |||
{{!}} '''[[Actor groups|Actor Group]]''' {{!!}} {{{group2}}} | |||
{{!}}-}} | |||
|- | |||
{{#if: {{{modelID|}}} | | |||
{{!}} '''Model ID''' {{!!}} {{{modelID}}} | |||
{{!}}-}} | {{!}}-}} | ||
|- | |- | ||
Line 63: | Line 71: | ||
{{!}}-}} | {{!}}-}} | ||
|- | |- | ||
|}{{#ifeq:{{NAMESPACENUMBER}}|0| | {{#if:{{{behaviorScript|}}}{{{behaviorCode|}}}{{{animationFile|}}}|{{!}}align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''[[Code Data|<span style="color:white;">Code</span>]]''' | ||
[[Category:Objects]]}}</includeonly> | |}} | ||
<noinclude>{{Object_infobox_2 | |- | ||
{{#if: {{{behaviorScript|}}} | | |||
{{!}} '''Initialization Behavior Script''' {{#tag:ref|{{{behaviorScript}}}|name=behavScript}} | |||
{{!}}-}} | |||
|- | |||
{{#if: {{{behaviorCode|}}} | | |||
{{!}} '''Behavior Code''' {{#tag:ref|{{{behaviorCode}}}|name=behavCode}} | |||
{{!}}-}} | |||
|- | |||
{{#if: {{{animationFile|}}} | | |||
{{!}} '''Animation File''' {{#tag:ref|{{{animationFile}}}|name=animFile}} | |||
{{!}}-}} | |||
|- | |||
{{#if:{{{foundIn|}}}|{{!}}align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''<span style="color:white;">Found in</span>''' | |||
|}} | |||
|- | |||
{{#if: {{{foundIn|}}} | | |||
{{!}} {{{foundIn}}} | |||
{{!}}-}} | |||
|- | |||
{{#if:{{{related|}}}|{{!}}align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''<span style="color:white;">Related Articles</span>''' | |||
|}} | |||
|- | |||
{{#if: {{{related|}}} | | |||
{{!}} {{{related}}} | |||
{{!}}-}} | |||
|- | |||
|}{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Objects]]}}</includeonly><noinclude>{{Object_infobox_2 | |||
|title=Boulder | |title=Boulder | ||
|image=STROOP- Rolling Rock.png | |image=STROOP- Rolling Rock.png | ||
|group=General Actor | |group=General Actor | ||
|group2=Test | |||
|modelID=0x39 | |||
|tangibility=20000 | |tangibility=20000 | ||
|draw=4000 | |draw=4000 | ||
Line 80: | Line 117: | ||
|height=525 | |height=525 | ||
|offset=0 | |offset=0 | ||
|behaviorScript=[https://github.com/n64decomp/sm64/blob/master/src/game/behaviors/boulder.inc.c Boulder Behavior Code] | |||
|behaviorCode=[https://github.com/n64decomp/sm64/blob/master/data/behavior_data.c#L4547 Boulder Initialization Code] | |||
|animationFile=[https://github.com/n64decomp/sm64/tree/master/actors Animation Folder] | |||
|foundIn= <!-- Courses this is found in, maybe also use a list (using the *) --> | |||
|related= <!-- Related articles --> | |||
}} | }} | ||
[[Category:Infobox templates|{{PAGENAME}}]] | <div style="float:right"><pre>{{Object_infobox_2 | ||
|title= | |||
|image= | |||
|group= | |||
|group2= | |||
|modelID= | |||
|tangibility= | |||
|draw= | |||
|gravity= | |||
|friction= | |||
|buoyancy= | |||
|interaction= | |||
|damage= | |||
|health= | |||
|radius= | |||
|height= | |||
|offset= | |||
|behaviorScript= | |||
|behaviorCode= | |||
|animationFile= | |||
|foundIn= | |||
|related= | |||
}}</pre></div> | |||
[[Category:Infobox templates|{{PAGENAME}}]] |
Latest revision as of 17:24, 11 October 2023
Boulder | |
![]() | |
Technical Constants | |
Object Group | General Actor |
Actor Group | Test |
Model ID | 0x39 |
Tangibility Radius | 20000 |
Draw Distance | 4000 |
Physical Constants | |
Gravity | 8 |
Friction | 0.999 |
Buoyancy | 2 |
Hitbox | |
Interaction Type | Hurtbox 1 |
Damage | 3 |
Health | 0 |
Radius | 315 |
Height | 525 |
Down Offset | 0 |
Code | |
Initialization Behavior Script [1] | |
Behavior Code [2] | |
Animation File [3] |
{{Object_infobox_2 |title= |image= |group= |group2= |modelID= |tangibility= |draw= |gravity= |friction= |buoyancy= |interaction= |damage= |health= |radius= |height= |offset= |behaviorScript= |behaviorCode= |animationFile= |foundIn= |related= }}