SuperTuxKart 1.5 upstream source (from official release tarball)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: Animated Monkey model for SuperTuxKart
|
||||
Upstream-Contact: Marianne "Auria" Gagnon <auria.mg@gmail.com>
|
||||
Source: https://supertuxkart.net
|
||||
License: CC-BY-SA 4.0
|
||||
|
||||
Files: *
|
||||
Copyright:
|
||||
Copyright 2014, 2015 Jean-Manuel "samuncle" Clémençon <sam.un@protonmail.com>
|
||||
Copyright 2017 Benau
|
||||
Copyright 2019 theTomasPat
|
||||
License: CC-BY-SA 4.0
|
||||
Comment: Original model by samuncle. Benau and theTomasPat added new animations.
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Generated with script from SVN rev 17016 -->
|
||||
<scene>
|
||||
<lod>
|
||||
<group name="_single_lod_stklib_monkeyCheering_a_main">
|
||||
<static-object lod_distance="120" lod_group="_single_lod_stklib_monkeyCheering_a_main" model="stklib_monkeyCheering_a_main.spm" xyz="0.00 0.19 0.00" hpr="0.0 -0.0 0.0" scale="1.00 1.00 1.00" interaction="ghost" skeletal-animation="true" geometry-level="1"/>
|
||||
</group>
|
||||
</lod>
|
||||
<object id="collisionBox" type="animation" xyz="0.00 0.00 0.00" hpr="0.0 -0.0 0.0" scale="1.00 1.00 1.00" interaction="physicsonly" shape="box" model="stklib_monkeyCheering_a_physic.spm" skeletal-animation="false" geometry-level="1">
|
||||
</object>
|
||||
<object id="stklib_monkeyCheering_a_main" type="animation" xyz="0.00 0.00 0.00" hpr="0.0 179.8 0.0" scale="1.00 1.00 1.00" frame-start="0 36 96 122 199" frame-end="34 94 120 140 217" interaction="ghost" lod_instance="true" lod_group="_single_lod_stklib_monkeyCheering_a_main" model="stklib_monkeyCheering_a_main.spm" skeletal-animation="true" geometry-level="1">
|
||||
</object>
|
||||
<object type="action-trigger" trigger-type="point" id="banana_trigger" action="throwBanana" distance="25.0" reenable-timeout="5.0" triggered-object="stklib_monkeyCheering_a_main" xyz="0.00 0.00 4.77" hpr="0.0 -0.0 0.0" scale="1.00 1.00 1.00"/>
|
||||
</scene>
|
||||
@@ -0,0 +1,28 @@
|
||||
namespace stklib_monkeyCheering_a
|
||||
{
|
||||
void throwBanana( int kart_id,
|
||||
const string instance_id,
|
||||
const string library_name)
|
||||
{
|
||||
Track::TrackObject@ obj = Track::getTrackObject(instance_id, library_name);
|
||||
// For low geometry detail
|
||||
if (obj is null)
|
||||
{
|
||||
Track::setTriggerReenableTimeout("banana_trigger", instance_id,
|
||||
999999.0);
|
||||
return;
|
||||
}
|
||||
|
||||
Track::Mesh@ mesh = obj.getMesh();
|
||||
if (mesh is null || mesh.getAnimationSet() != 2)
|
||||
{
|
||||
// This monkey is not using banana animation set, disable the
|
||||
// trigger for this round of game
|
||||
Track::setTriggerReenableTimeout("banana_trigger", instance_id,
|
||||
999999.0);
|
||||
return;
|
||||
}
|
||||
|
||||
mesh.setFrameLoopOnce(143, 198);
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user