Jump to content

Home

emotes


madjawa

Recommended Posts

I finally found by myself :p its the function :

G_SetAnim(ent, NULL, SETANIM_BOTH, BOTH_CONSOLE1, SETANIM_FLAG_OVERRIDE
|SETANIM_FLAG_HOLD|SETANIM_FLAG_HOLDLESS, 0);

but I don't know what means theses flags (SETANIM_FLAG_OVERRIDE, ....). and when I use the command with this function, I do the emote but I can move, not very realistic (my legs wont move). I think I should set player speed to 0 during the emote but I dont know how to make the speed back to normal when the emote is finished.

 

and another question : where is defined NUM_FORCE_POWERS ?? because I want add new force powers but I think I must increase this.. otherwise I get errors when compiling..

 

thanks in advance

madjawa

and sorry for my bad english

Link to comment
Share on other sites

I have another question (again :D). I'm making console commands (like the commands /kill, /tell...) with an argument : a player. But if someone is named IamMadJawa in the game, I must type /mycommand iammadjawa. I would like type for example /mycommand mad or even his clientnum, and it will apply on the player IamMadJawa :D

my code is :

	*snip*
char targ[MAX_STRING_CHARS];
int clientNum;
gentity_t *target;

trap_Argv( 1, targ, sizeof( targ ) );

clientNum = G_ClientNumberFromName( targ );
target = &g_entities[clientNum];
*snip*

(in g_cmd.c)

 

thanks (again) in advance

madjawa

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...