Results 1 to 9 of 9

Thread: Script documentation

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private Lonsofore's Avatar
    Join Date
    Oct 2016
    Posts
    86
    Thanks
    82
    Thanked 38 Times in 25 Posts

    Post Script documentation #2

    Hello Killtube. You could see the old thread with documentation, but it's too old. Some functions no longer exist, some of them changed their name and also a lot of new. But there is a Git repo, so I decided to fork it and make new domentation.

    Web: http://script.cod2.ru
    GitHub: https://github.com/Lonsofore/codscriptdoc

    There is a lot of changes:
    - All files are sorted now with folders
    - Separated stock and libcod
    - Added categories for libcod (like you could see in VoroN's libcod repo)
    - Removed nonexistent libcod functions
    - Fixed some functions (e.g. some of them has the different name now)
    - Added a lot of new functions (but not all yet!)
    - As soon as libcod doesn't support CoD1 and CoD4, I want to make this documentation only for CoD2

    But more needs to be done and I want to ask Killtube about it:
    - As you could read above, I want to make this documentation only for CoD2, so I want to ask you - which functions from this list don't exist in CoD2?
    - I also found some unknown functions in Mitch's repo. Can somebody tell me about them? link
    - And if somebody wants to support this idea - you're welcome! Here you can find almost all libcod functions. Write about missing in this thread and I'll add it :)
    Fully completed categories: Bots, Entity, Exec. In other categories you can find something and describe. It's very good opportunity to learn more in libcod :)

  2. The Following 3 Users Say Thank You to Lonsofore For This Useful Post:

    IzNoGoD (10th June 2017),kung foo man (9th June 2017),YuriJurek (10th June 2017)

  3. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    - ADSaim doesnt make a bot "aim at visible players". All it does is simulate a right mouse-click, probably without the toggle functionality (aka keep it set to true until you want the bot to zoom out again)
    - async_create_nosave also can have a callback, like async_create. It just doesn't pass the result from the command into the callback.
    - Might wanna add to memset() that it's expecting an integer, so you need at least 4 bytes to be memset'd
    - In clientUserInfoChanged it states that "The existance of CodeCallback_UserInfoChanged is checked once on start." Might wanna clarify that that's server-start not map-start. Same for clientcommand()
    - Connectionlesspacket fakes a packet from the client to the server, not the other way around
    - float() can take float, int and string as argument, not just string.
    - Gettype lacks list of possible responses
    - Please dont link to the sprintf() c-implementation for sprintf. It's just a fancy way of replacing % with arguments. The c-implementation is far more fancy.

    Overall, the returned types seem to be missing. For example, getvelocity() returns a vector.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  4. The Following 3 Users Say Thank You to IzNoGoD For This Useful Post:

    kung foo man (10th June 2017),Lonsofore (10th June 2017),YuriJurek (10th June 2017)

  5. #3
    Private Lonsofore's Avatar
    Join Date
    Oct 2016
    Posts
    86
    Thanks
    82
    Thanked 38 Times in 25 Posts
    Thank you, IzNoGoD. Fixed all of this list (except return types).

Posting Permissions

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