Pickups and scripting
2013-01-27, 10:38 AM (This post was last modified: 2013-01-27, 10:39 AM by Victor.)
#2
RE: Pickups and scripting
No, it's done with C++ code.
entities.cpp:13-19
Code:
void renderent(entity &e)
{
    const char *mdlname = entmdlnames[e.type-I_CLIPS];
    float z = (float)(1+sinf(lastmillis/100.0f+e.x+e.y)/20),
          yaw = lastmillis/10.0f;
    rendermodel(mdlname, ANIM_MAPMODEL|(e.spawned ? 0 : ANIM_TRANSLUCENT)|ANIM_LOOP|ANIM_DYNALLOC, 0, 0, vec(e.x, e.y, z+S(e.x, e.y)->floor+e.attr1), yaw, 0);
}

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply


Messages In This Thread
Pickups and scripting - by -{ET}-xdEpicZombie - 2013-01-27, 02:12 AM
RE: Pickups and scripting - by Victor - 2013-01-27, 10:38 AM
RE: Pickups and scripting - by -{ET}-xdEpicZombie - 2013-02-01, 01:21 PM
RE: Pickups and scripting - by Victor - 2013-02-02, 03:02 PM
RE: Pickups and scripting - by -{ET}-xdEpicZombie - 2013-02-03, 02:54 AM
RE: Pickups and scripting - by Victor - 2013-02-03, 11:15 AM

Forum Jump:


This forum uses Lukasz Tkacz MyBB addons.