Results 1 to 3 of 3

Thread: suppress deadbodies?

  1. #1
    Senior Member Ancient Order's Avatar
    Join Date
    Aug 2015
    Location
    Paris, Fr.
    Posts
    196

    Default suppress deadbodies?

    hi there!
    Do you know any way to suppress, remove or hide deadbodies at player's death, how can you access it from a script if ever?

  2. #2

    Default

    Sure. An easy example would be to exec some code on the the model tikis.

    The Body ents use the player models. All player models use: models/player/base/include.txt

    So in that file you can do:


    init
    {
    server
    {
    setsize "-16 -16 0" "16 16 92"

    american // recognised by AI as an American

    exec global/removebody.scr //call your body code here
    }
    client
    {
    // Cache sounds here
    }
    }


    and in removebody.scr there you can do:


    main:
    if (self && self.classname == "Body")
    {
    self delete
    }
    end
    Last edited by 1337Smithy; November 14th, 2020 at 10:40 AM.

  3. #3
    Senior Member Ancient Order's Avatar
    Join Date
    Aug 2015
    Location
    Paris, Fr.
    Posts
    196

    Default

    Thank you so much Smithy, that works fine and easy! Nice include.txt trick, it will be usefull

Posting Permissions

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