Posted: Tue Oct 21, 2003 5:16 am
BASTOGNE





















Thanks. But I really was curious. Like the randomness of the guys that light a butt up and just stand there and smoke. I dont understand that either.nuggets wrote:nice work (again) i'd be more concerned about the cat though






Code: Select all
IdleStandBored:
waitexec anim/smoking.scr::SmokeCigaretteInit
local.randnum = randomint 100
// 2 cycles before smokin out
local.loop = 2
while(local.loop>0)
{
if (local.randnum < 33)
{
self.blendtime = 0.5
self setmotionanim (self.weapongroup + "_stand_bored_a_intro")
self waittill flaggedanimdone
local.i = randomint(2) + 3
while (local.i > 0)
{
self.blendtime = 0.5
self setmotionanim (self.weapongroup + "_stand_bored_a")
self waittill flaggedanimdone
local.i = local.i - 1
}
self.blendtime = 0.5
self setmotionanim (self.weapongroup + "_stand_bored_a_outtro")
self waittill flaggedanimdone
}
else if (local.randnum < 66)
{
self.blendtime = 0.5
self setmotionanim (self.weapongroup + "_stand_bored_b_intro")
self waittill flaggedanimdone
local.i = randomint(2) + 3
while (local.i > 0)
{
self.blendtime = 0.5
self setmotionanim (self.weapongroup + "_stand_bored_b")
self waittill flaggedanimdone
local.i = local.i - 1
}
self.blendtime = 0.5
self setmotionanim (self.weapongroup + "_stand_bored_b_outtro")
self waittill flaggedanimdone
}
else
{
waitthread IdleStandBoredGeneric
}
local.loop--
}
waitexec anim/smoking.scr::SmokeCigarette
end
$player_name u mean the name of the enemys $targetname? Can you elaborate? Because im just now getting them fully under my control with targeting waypoints correctly and other crap like card games and nodes that work with their min/max property numbers,etcnuggets wrote:yep, $player_name waitexec anim/smoking.scr::smokecigaretteinit