Hello, I am adding new entities into my game, and have seen that dmc models have rotation built into their models! This is absolutely amazing!! Unfortunately.. I havent been able to get the model to play its animation, can someone tell me what im doing wrong please?
PHP Code:
iEnt = -1;
while( (iEnt = find_ent_by_class(iEnt, "weapon_supershotgun")) !=0)
{
//
entity_set_model(iEnt, "models/dmc/g_shot2.mdl");
entity_set_size(iEnt, Float:{-32.0, -16.0, 24.0}, Float:{32.0, 16.0, 40.0})
entity_set_int(iEnt, EV_INT_solid, SOLID_TRIGGER);
//animation stuff
entity_set_int(iEnt, EV_INT_sequence, 1);
entity_set_float(iEnt, EV_FL_frame, 0.0);
entity_set_float(iEnt, EV_FL_animtime, halflife_time());
entity_set_float(iEnt, EV_FL_framerate, 1.0);
}
Please note: to play with these models you will need dmc/models/g_shot2.mdl
AND dmc/models/g_shot2T.mdl, if you dont have the 2nd model you will recieve an error about the missing model when trying to join a team (on player spawn)
__________________