Jump to content

Home

What is bad here ?


lukluk

Recommended Posts

You never made "anim" anything...its supposed to be a int:

void Svcmd_taunt_f(void)
{
if (trap_Argc() < 2)
{
int anim = BOTH_GESTURE1;
return;
}
}
[/Code]

Also this will not set the players anim....I dont have the function name off the top of my head that will....

Link to comment
Share on other sites

  • 3 weeks later...

you shouldn't even need the "int anim" part, but you do need to pass on the entity to the function you created. The function for animating (I believe) is G_SetAnim:

 

G_SetAnim(ent, &ent->client->pers.cmd, SETANIM_BOTH, BOTH_GESTURE1, SETANIM_FLAG_OVERRIDE|SETANIM_FLAG_HOLD, 0);

 

However, there is also PM_SetAnim and BG_SetAnim (an NPC_SetAnim exists, but thats for npcs of course). If someone else could clarify when each instance are best used, I'm sure the Original poster would be more educated as well as the rest of us =)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...