PDA

View Full Version : animation



malyczolg
7th June 2014, 09:26
hello how make walking animations for zombie bots?


https://www.youtube.com/watch?v=7OduBuEZJ_o&feature=youtu.be

malyczolg
7th June 2014, 11:52
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();

Invictus
4th July 2014, 12:35
[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:



self setmodel("xmodel/czolg_zom_1");
wait 0.2;
self setmodel("xmodel/czolg_zom_2");


Coś w tym stylu xD

Invictus
4th July 2014, 20:34
https://www.youtube.com/watch?v=9RF4znzza34&feature=youtu.be

*models from zombot 1.3 by Teufel.



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;
}


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().


sorry for bad english ;)

Mitch
5th July 2014, 09:41
To clarify setAlive requires libcod and a model with a high lod collision.

php
5th July 2014, 20:40
You might wanna change that '*models from zombot 1.3 by Teufel. ' to '*models by IwX' since he made it the models.

Invictus
6th July 2014, 19:31
You might wanna change that '*models from zombot 1.3 by Teufel. ' to '*models by IwX' since he made it the models.

I don't know who is the owner of this model, i copy this model form Teufel mod. But in name of file i see ''iwx'' so, i will change that xD