madjawa Posted May 7, 2005 Posted May 7, 2005 hi, I didnt find how to make EMOTES. How to make them?for example you type /emote typing and you look like typing in a console... thx in advance madjawa
MDN14 Posted May 7, 2005 Posted May 7, 2005 probably something like "/emote sit1" which would make your player sit down like the meditate animation until you did "/emote sit1" again to stop sitting down.
madjawa Posted May 8, 2005 Author Posted May 8, 2005 I finally found by myself 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
madjawa Posted May 8, 2005 Author Posted May 8, 2005 I have another question (again ). 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 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.