Results 1 to 5 of 5

Thread: disableGlobalPlayerCollision() 1.3 problem

  1. #1
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts

    disableGlobalPlayerCollision() 1.3 problem

    Hiya,

    I decided to boot my server up in 1.3 instead of 1.0 for the first time using libcod.

    One big problem I noticed was that if disableGlobalPlayerCollision() is enabled, I can no longer kill other players. All bullets go through the player without inflicting damage. Nades don't work either. Suicide works.

    It's not my mod causing the problem because I loaded up a fresh fs_game folder with only disableGlobalPlayerCollision() enabled and I was still unable to kill players.

    I was able to walk through players if that counts for anything.

    I'v tried using the newest & oldest versions of libcod compiled here; http://killtube.org/downloads/libcod/

    I'v also tried using Mitch's latest compiled version here; http://znation.nl/libcod/libcod2_1_3_nomysql.so

    Still no success.

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    disableglobalplayercollision() has changed in the last 2 months thanks to php, who fixed a lot of it. It now does NOT reset the contents of a player at the end of a frame. Just setcontents(256) a player at spawntime. If that doesnt work, try experimenting with different content values (its binary, so you can start with 1|2|4|8|16|32|64|128|256|512|1024|2048|4096|8192|1 6384|32768|65536 etc)
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

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

    filthy_freak_ (19th May 2014),kung foo man (19th May 2014)

  4. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    These are some cvars that might help to debug this problem:

    Code:
    g_debugBullets
    g_debugDamage
    g_debugLocDamage
    timescale 0.01

  5. The Following User Says Thank You to kung foo man For This Useful Post:

    filthy_freak_ (19th May 2014)

  6. #4
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Quote Originally Posted by IzNoGoD View Post
    disableglobalplayercollision() has changed in the last 2 months thanks to php, who fixed a lot of it. It now does NOT reset the contents of a player at the end of a frame. Just setcontents(256) a player at spawntime. If that doesnt work, try experimenting with different content values (its binary, so you can start with 1|2|4|8|16|32|64|128|256|512|1024|2048|4096|8192|1 6384|32768|65536 etc)
    Doing

    Code:
    self setcontents(256);
    Just after spawnPlayer() made nades work. Bullets still don't work however. I'll continue to experiment with this.

    Quick Edit: Set self setcontents(1); and it started working correctly! Tyvm.

    I think its strange I require to have this in 1.3 but not 1.0

    Oh well.
    Last edited by filthy_freak_; 19th May 2014 at 04:14.

  7. #5
    Private First Class php's Avatar
    Join Date
    Nov 2012
    Posts
    142
    Thanks
    28
    Thanked 116 Times in 59 Posts
    Try setting the contents to 32 (CONTENTS_WATER)

Posting Permissions

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