hello how make walking animations for zombie bots?
https://www.youtube.com/watch?v=7Odu...ature=youtu.be
Printable View
hello how make walking animations for zombie bots?
https://www.youtube.com/watch?v=7Odu...ature=youtu.be
PHP Code:
self endon("killed");
self.maxhealth = 200;
self.health=self.maxhealth;
self.id=0;
self setAlive(1);
self thread monitordamage();
while(level.zombies[self.id]) self.id++;
level.zombies[self.id]=true;
self setmodel("xmodel/czolg_zom_1");
self.block = spawn("trigger_radius",self.origin+(0,0,50),0,5,5);
self.block setcontents(1);
self.block enablelinkto();
self.block linkto(self);
self.block hide();
[PL]: Teufel w swoim modzie używa osobnych modeli, które nie różnią się niczym oprócz ustawienia rąk/nóg itp. itd. Chodzi o to żeby model zmieniał swój wygląd co jakiś czas... W jego modzie każdy model ma 10swoich odmian np. (wolfrun1 - wolfrun2 - wolfrun3 ... itd.) Gdybyś zrobił 10 takich odmian mógłbyś ustawić to prostym kodem. np:
Coś w tym stylu xDPHP Code:
self setmodel("xmodel/czolg_zom_1");
wait 0.2;
self setmodel("xmodel/czolg_zom_2");
https://www.youtube.com/watch?v=9RF4znzza34&feature=youtu.be
*models from zombot 1.3 by Teufel.
But theres a one problem... Model dont have colision, when i test this model on my mod - i can't kill zombie. You must spawn a trigger_damage to define dmg, or setalive().PHP Code:
for(;;)
{
level.model setmodel("xmodel/iwx_nazi1");
wait 0.03;
level.model setmodel("xmodel/iwx_nazi2");
wait 0.03;
level.model setmodel("xmodel/iwx_nazi3");
wait 0.03;
level.model setmodel("xmodel/iwx_nazi4");
wait 0.03;
level.model setmodel("xmodel/iwx_nazi5");
wait 0.03;
level.model setmodel("xmodel/iwx_nazi6");
wait 0.03;
level.model setmodel("xmodel/iwx_nazi7");
wait 0.03;
level.model setmodel("xmodel/iwx_nazi8");
wait 0.03;
level.model setmodel("xmodel/iwx_nazi9");
wait 0.03;
level.model setmodel("xmodel/iwx_nazi10");
wait 0.03;
level.model setmodel("xmodel/iwx_nazi11");
wait 0.03;
level.model setmodel("xmodel/iwx_nazi12");
wait 0.03;
level.model setmodel("xmodel/iwx_nazi13");
wait 0.03;
level.model setmodel("xmodel/iwx_nazi14");
wait 0.03;
level.model setmodel("xmodel/iwx_nazi15");
wait 0.03;
}
sorry for bad english ;)
To clarify setAlive requires libcod and a model with a high lod collision.
You might wanna change that '*models from zombot 1.3 by Teufel. ' to '*models by IwX' since he made it the models.