Results 1 to 2 of 2

Thread: Chat Headicon

  1. #1
    ... connecting
    Join Date
    Aug 2018
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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
    Corporal maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    347
    Thanks
    73
    Thanked 74 Times in 63 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 05:09.
    write shit code's

Posting Permissions

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