Pickups and scripting
2013-01-27, 02:12 AM (This post was last modified: 2013-01-27, 02:18 AM by -{ET}-xdEpicZombie.)
#1
Pickups and scripting
The rotation and floating of pickups are done with cubescript.Could anyone script it so the pickups stay on the ground,dont rotate and float?

[Image: 3SVsNlV.png]
Post Reply Quote this message in a reply
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
2013-02-01, 01:21 PM
#3
RE: Pickups and scripting
What ever it is,can you do it?

[Image: 3SVsNlV.png]
Post Reply Quote this message in a reply
2013-02-02, 03:02 PM
#4
RE: Pickups and scripting
Yes, but why would I do it?

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
2013-02-03, 02:54 AM
#5
RE: Pickups and scripting
to make the gam look a bit more realistic-floating ammo boxes and grenades arent

or what u think

by the way if u do it we need new akimbo pickup model,Ill get it if needed

[Image: 3SVsNlV.png]
Post Reply Quote this message in a reply
2013-02-03, 11:15 AM
#6
RE: Pickups and scripting
Well, it looks better with the floating ammo boxes, so it's considered a feature to have them float and rotate, but in real life, they wouldn't be there anyways.

Regarding the akimbo model, I'm not sure if it needs to be replaced.

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


Forum Jump:


This forum uses Lukasz Tkacz MyBB addons.