Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: disable playercollision Voron's libcod

  1. #1
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts

    disable playercollision Voron's libcod

    Hi all,

    I have the latest version libcod made by Voron.
    Code:
    set g_playerCollision 0
    set g_playerEject 0
    If i use these commands there is no player collision but I cant see the playername above his head and I cant hit the player anymore.

    Code:
    set g_playerCollision 1
    set g_playerEject 0
    If I use these commands there is no player collision but I can see the playername above his head but I cant hit the player anymore.

    What are the correct commands?

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Try the final one, but with an added self setcontents(256|32); in the onspawn thingy
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  3. #3
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Code:
    g_playerCollision 0
    PHP Code:
    spawnPlayer()
    {
    self setContents(288); // without collision
    self setContents(33554432); // collision

    Code:
    g_playerEject 1/0
    for glitch on/off
    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

  4. #4
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    I don't think you can have player names + no collision. If someone figures it out, let us know.

  5. #5
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    Just make your own player names huds with setPlayerNameString() when using setContents(288)
    sudo apt-get rekt

  6. #6
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Quote Originally Posted by voron00 View Post
    Just make your own player names huds with setPlayerNameString() when using setContents(288)
    I've already tried that. Imagine having 100+ ping and trying to track a player that is moving.

    Also IsLookingAt() breaks with no collision.

  7. #7
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    To further add to my previous message, if you do "self setcontents(8320);" instead of 288, that fixes IsLookingAt(). I don't know why though. It gives me hope that a similar solution can be found to fix player names.

  8. #8
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Quote Originally Posted by filthy_freak_ View Post
    To further add to my previous message, if you do "self setcontents(8320);" instead of 288, that fixes IsLookingAt(). I don't know why though. It gives me hope that a similar solution can be found to fix player names.
    with
    Code:
    g_playerCollision 0
    and
    PHP Code:
    setContents(288); 
    bullettrace - work
    isLookingAt() - idk
    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

  9. #9
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    How did you find out those numbers?

  10. #10
    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
    Should be these CONTENTS_ flags: