Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: disable global collision

  1. #11
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts
    Euhmm, so version for 1.0 is not supported? I need this for this version only.
    "Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right

  2. #12
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Quote Originally Posted by RobsoN View Post
    Euhmm, so version for 1.0 is not supported? I need this for this version only.
    Where did i ever write that?

    I just asked if you could try on 1.2/1.3 so the 1.0 factor is not a concern.

  3. #13
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Didn't know it before, anyone had issues with linkto/bullettrace?

    [19:18] RobsoN: hello, i wanted to notice bullettrace [entity] and likto wont work with nocollision
    [19:19] kung foo man: oh thanks for telling, didnt know that
    [19:19] kung foo man: not at all or specific cases?
    [19:19] RobsoN: euhmm idk what do you mean
    [19:20] RobsoN: i just have ran this
    [19:20] RobsoN: and its working well
    [19:20] RobsoN: but any bullettrace entity or linkto entity wont work
    [19:20] RobsoN: bullettrace returns undefined entity, and likto is just not linking to undefined entity
    [19:20] kung foo man: ah
    [19:21] RobsoN: is it possible to patch it or not?
    [19:21] kung foo man: would need enablePlayerCollision() function
    [19:21] kung foo man: then enable -> make trace -> disable
    timescale 0.01

  4. #14
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Just try with setcontents(256) every frame on every player...

  5. #15
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts
    Trace still doesn't work
    "Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right

  6. #16
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Not sure if worth mentioning that it works fine for me on 1.0? Fixed maybe?

  7. #17
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    timescale 0.01

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

    Mitch (9th May 2014)

  9. #18
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Quote Originally Posted by kung foo man View Post
    Yeah I assumed this was done a while ago after I found it worked.

    I always thought this wouldn't work due to this thread, so updating it is good for others.

  10. The Following User Says Thank You to filthy_freak_ For This Useful Post:

    kung foo man (9th May 2014)

  11. #19
    ... connecting
    Join Date
    Feb 2015
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello. I tried to disable collision, but I can't. I'm trying it on Linux Ubuntu CoD2 v1.3
    What I try is:
    Calling a function at the beginning of a script
    Code:
    	EndlessCollisionDisable();
    The function is:
    Code:
    EndlessCollisionDisable()
    {
    	level endon("boot");
    	std\utils::disableGlobalPlayerCollision();
    	
    	while(true)
    	{
    		players = GetEntArray("player","classname");
    		for(i=0;i<players.size;i++)
    		{
    			players[i] setcontents(0);
    		}
    		wait 1;
    	}
    }
    What am I doing wrong?

  12. #20
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    You're calling the wrong function.

    Call once to DisableGlobalPlayerCollision() when you have libcod
    Then setcontents(256) on spawn.
    setcontents(257) for a moment if you need bullettrace (that should also fix the issues posted here earlier)
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  13. The Following User Says Thank You to IzNoGoD For This Useful Post:

    kung foo man (27th February 2015)

Posting Permissions

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