Some info for those who wish to replicate / add their own pose:
I added a waypoint in \pack\pack_dungeon\init\stories\dungeon\scenes\dungeon1.dat BEFORE the last }
Code:
waypoint_objecti TABLEBEND
{
pos = (1.9,0.0,1.5);
rot = (0.0,190.0,0.0);
}
Then I went to \pack\pack_dungeon\init\stories\dungeon\chars\saiko\brain\state\stat.dat and added the waypoint under LOCATION :
Code:
location
{
bed = "bed_wp1";
cage = "cage_wp2";
toilet = "toilet_wp1";
dildo = "dildo_wp1";
machine = "machine_wp1";
dance = "dance_wp1";
stocks = "stocks_wp1";
chains = "chains_wp1";
table = "sitass_wp1";
jiggle = "TABLEBEND";
}
Finally I went to pack\pack_dungeon\init\std\template\char\brain\code\run\jiggle0_state.dat and changed the code :
Code:
//-------------------------------------------
<jiggle0_state>
loc.res = pose_state();
[loc.res] return;
case (state.dyn.me.do.state2)
{
[START1]
{
loc.sp.pose_type = STAND;
loc.sp.pose_id = 0;
loc.sp.waypoint = "DUNGEON1:TABLEBEND";
do_set_timer(1);
loc.sp.exact = 1;
SetPose(loc.sp);
state.dyn.me.do.state2 = START2;
state.dyn.me.do.pose.fstate2 = FINISH;
}
[START2]
{
loc.ts = GetTs();
[loc.ts < state.dyn.me.do.ts] return;
[state.dyn.me.pose.result == NONE] return;
loc.sp.pose_type = TEST;
loc.sp.pose_id = 0;
SetPose(loc.sp);
}
[FINISH]
{
basic_state();
}
}
</jiggle0_state>
Some quick notes:
TEST is the name of the pose for the animation I added in maya and declared in the body.ini
Code:
movie "test_0"
{
frame[12000] = 0;
};
Also in pack\pack_dungeon\init\std\base\char\char_base.dat we must add the pose at the end before the last closing bracket }
Code:
pose_type[126]//if the one before is not 125 then adjust this number
{
type = TEST; // The pose name
id = 0; // The pose id
name = "*test_0"; // The pose animation
need_type = STAND; // Need this pose before starting
need_id = 0;
go_type = STAND; // Goto this pose when ready
go_id = 0;
fade_in = 1.5; // Fade in
damp = 3; // Damping
loop = false; // No loop
}
for more details on adding a pose, see Eskarn's great tutorial in the wiki
When setting a waypoint, if it is too near to another on the girl's trajectory, the girl will consider both waypoints as one and do the pose on the nearest one. If your pose is not triggered correctly, put some distance between the waypoints (a difference of 0.5 seems to be enough).
Since you are sending the girl to a waypoint, you can choose the direction she faces before executing the pose. In my case, since the pose is relative to the table, I rotated the waypoint 190 degrees
rot = (0.0,190.0,0.0);That's all for now. As soon as I manage to finish my TODO list, I will share the files