Results 1 to 2 of 2

Thread: Chat Headicon

  1. #1
    ... connecting
    Join Date
    Aug 2018
    Posts
    8
    Thanks
    0
    Thanked 1 Time in 1 Post

    Question Chat Headicon

    Hello,

    I am new here and registered because I have a question.
    When a player is typing a chat message in COD2 he has a bulb above his head.
    I would like to add this feature to COD4 but i can not find it in the COD2 menu or gsc files, that's why i think it's hardcoded somewhere in the sources.

    Is there any chance to realise this with libcod?
    Or a way to get the function which is doing this in COD2 so it can be ported to COD4?

    Thanks in advance and best regards.

  2. #2
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    You can bind additional command for chat button
    Code:
    Original:
    bind t "...open chat"
    
    Try:
    bind t "...open chat; openscriptmenu sys open_chat"
    Next -> track scriptmenuresponse and make headicon after "open_chat" -> if (player sent a message or player moving (compare old and new coordinates): remove headicon

    P.S: idk, maybe exist function like "isTalking", but for chat
    Last edited by maxdamage99; 11th September 2018 at 06:09.
    PHP Code:
    class CoronaVirus 
    {
       
    CoronaVirus(int m 1): multi(m) { Peoples.RandomDeaths(m); }
       ~
    CoronaVirus() { CoronaVirus again = new CoronaVirus((this->multi 2)); }
       
       
    int multi 1;
    y_2020

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •