i have Cardgames working in all maps ( sp and mp )
Posted: Thu Aug 01, 2002 4:37 pm
woooohhhooooooooooo
I have been able to get the cardgame to work in all singleplayer and multiplayer maps.
It is nothing , anyone has not done, that makes them not work. It is something left out of a file that is the problem.. To get them to work I had to find which file had the animations ( human/animation/scripted/table.tik )
and then how to get it to work. When searching through the .tik files, as you do
, i found a reference to
include human/new_generic_human.tik
essentially, Every ai_human.tik has this command at the end of it.
this is the file that needs to be changed.
If you look closely at the .tik file, you will see, it has animations in it..(yes), but each animation is locked away behind an
include mapname
{
...
}
command.
this means if your map was called
test
m1l2a
m2l2a
m4l3
then the cardgame worked, if not bad luck...
All i did was move the
$include models/human/animation/scripted/table.tik
to just below the
$include models/human/animation/scripted/balcony.tik
like this
**********************************************
setup
{
ischaracter
}
//=============================================================================================
//=============================================================================================
//
// Level-specific animations
//
//=============================================================================================
//=============================================================================================
$path models/human/animation
$include models/human/animation/scripted/balcony.tik
$include models/human/animation/scripted/table.tik
//-------------------------------------
// Test maps (every animation)
// Utils is a keyword for Radiant and other tools.
//-------------------------------------
includes test utils
{
// NPC weapon animations
$include models/human/animation/human_grenade.tik
$include models/human/animation/human_bar.tik
$include models/human/animation/human_thompson.tik
$include models/human/animation/human_pistol.tik
$include models/human/animation/human_mp44.tik
$include models/human/animation/human_rifle.tik
$include models/human/animation/human_mp40.tik
$include models/human/animation/human_bazooka.tik
$include models/human/animation/human_mg42.tik
$include models/human/animation/human_unarmed.tik
// Level-specific scripted animations
$include models/human/animation/scripted/level_m1l1.tik
$include models/human/animation/scripted/level_m1l2.tik
$include models/human/animation/scripted/level_m2l1.tik
$include models/human/animation/scripted/level_m3l1.tik
$include models/human/animation/scripted/level_m4l3.tik
$include models/human/animation/scripted/level_m5l3.tik
// More scripted animations
$include models/human/animation/scripted/dead_poses.tik
$include models/human/animation/scripted/fallen.tik
$include models/human/animation/scripted/crate_carry.tik
$include models/human/animation/scripted/hiding_cabinet.tik
$include models/human/animation/scripted/interrogation.tik
$include models/human/animation/scripted/jeep.tik
$include models/human/animation/scripted/scientist.tik
$include models/human/animation/scripted/set_explosive.tik
$include models/human/animation/scripted/table.tik
$include models/human/animation/scripted/throw_helmet.tik
$include models/human/animation/scripted/flak88_animation.tik
$include models/human/animation/scripted/prisoners.tik
$include models/human/animation/scripted/lean.tik
$include models/human/animation/scripted/pilot_capture.tik
$include models/human/animation/scripted/wallclimb.tik
$include models/human/animation/scripted/sleep.tik
$include models/human/animation/scripted/opeltruck.tik
$include models/human/animation/scripted/vent.tik
$include models/human/animation/scripted/alarm.tik
$include models/human/animation/scripted/tank.tik
$include models/human/animation/scripted/workers.tik
$include models/human/animation/scripted/welding.tik
}
etc
*******************************************
By cutting it from the red spot and pasting to the green, then, saving it into your mohaa/main/models/human folder.
all will work ok
distribute this file if you want others to see, the cardgame...
Have done a tutorial, but not posted yet!
I have been able to get the cardgame to work in all singleplayer and multiplayer maps.
It is nothing , anyone has not done, that makes them not work. It is something left out of a file that is the problem.. To get them to work I had to find which file had the animations ( human/animation/scripted/table.tik )
and then how to get it to work. When searching through the .tik files, as you do
include human/new_generic_human.tik
essentially, Every ai_human.tik has this command at the end of it.
this is the file that needs to be changed.
If you look closely at the .tik file, you will see, it has animations in it..(yes), but each animation is locked away behind an
include mapname
{
...
}
command.
this means if your map was called
test
m1l2a
m2l2a
m4l3
then the cardgame worked, if not bad luck...
All i did was move the
$include models/human/animation/scripted/table.tik
to just below the
$include models/human/animation/scripted/balcony.tik
like this
**********************************************
setup
{
ischaracter
}
//=============================================================================================
//=============================================================================================
//
// Level-specific animations
//
//=============================================================================================
//=============================================================================================
$path models/human/animation
$include models/human/animation/scripted/balcony.tik
$include models/human/animation/scripted/table.tik
//-------------------------------------
// Test maps (every animation)
// Utils is a keyword for Radiant and other tools.
//-------------------------------------
includes test utils
{
// NPC weapon animations
$include models/human/animation/human_grenade.tik
$include models/human/animation/human_bar.tik
$include models/human/animation/human_thompson.tik
$include models/human/animation/human_pistol.tik
$include models/human/animation/human_mp44.tik
$include models/human/animation/human_rifle.tik
$include models/human/animation/human_mp40.tik
$include models/human/animation/human_bazooka.tik
$include models/human/animation/human_mg42.tik
$include models/human/animation/human_unarmed.tik
// Level-specific scripted animations
$include models/human/animation/scripted/level_m1l1.tik
$include models/human/animation/scripted/level_m1l2.tik
$include models/human/animation/scripted/level_m2l1.tik
$include models/human/animation/scripted/level_m3l1.tik
$include models/human/animation/scripted/level_m4l3.tik
$include models/human/animation/scripted/level_m5l3.tik
// More scripted animations
$include models/human/animation/scripted/dead_poses.tik
$include models/human/animation/scripted/fallen.tik
$include models/human/animation/scripted/crate_carry.tik
$include models/human/animation/scripted/hiding_cabinet.tik
$include models/human/animation/scripted/interrogation.tik
$include models/human/animation/scripted/jeep.tik
$include models/human/animation/scripted/scientist.tik
$include models/human/animation/scripted/set_explosive.tik
$include models/human/animation/scripted/table.tik
$include models/human/animation/scripted/throw_helmet.tik
$include models/human/animation/scripted/flak88_animation.tik
$include models/human/animation/scripted/prisoners.tik
$include models/human/animation/scripted/lean.tik
$include models/human/animation/scripted/pilot_capture.tik
$include models/human/animation/scripted/wallclimb.tik
$include models/human/animation/scripted/sleep.tik
$include models/human/animation/scripted/opeltruck.tik
$include models/human/animation/scripted/vent.tik
$include models/human/animation/scripted/alarm.tik
$include models/human/animation/scripted/tank.tik
$include models/human/animation/scripted/workers.tik
$include models/human/animation/scripted/welding.tik
}
etc
*******************************************
By cutting it from the red spot and pasting to the green, then, saving it into your mohaa/main/models/human folder.
all will work ok
distribute this file if you want others to see, the cardgame...
Have done a tutorial, but not posted yet!