madjawa Posted May 7, 2005 Share 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 Link to comment Share on other sites More sharing options...
razorace Posted May 7, 2005 Share Posted May 7, 2005 What sort of emotes are you talking about? Link to comment Share on other sites More sharing options...
MDN14 Posted May 7, 2005 Share 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. Link to comment Share on other sites More sharing options...
madjawa Posted May 8, 2005 Author Share 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 Link to comment Share on other sites More sharing options...
madjawa Posted May 8, 2005 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.