Raised This Month: $ Target: $400
 0% 

[CS:GO] Deathmatch (v2.0.9, 2018-06-12)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
boboffuture
Junior Member
Join Date: Jun 2017
Plugin ID:
4313
Plugin Version:
2.0.9
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Enables deathmatch style gameplay (respawning, gun selection, spawn protection, etc).
    Old 07-01-2017 , 18:25   Re: [CS:GO] Deathmatch (v2.0.7a, 2017-01-11)
    Reply With Quote #1

    Quote:
    Originally Posted by luckykevin View Post
    Code:
    dm_spawn_distance
    Is this cvar in units?

    I have tried setting this to multiple levels; 330, 500, 1000, and players still end up spawning very close to someone who is nearby the spawn itself.
    I had the exact same problem, I initially thought the plugin wasn't considering the distance when spawning someone, so I checked the source, and as expected, everything was correct.

    But still, on my local server, players were spawning right next to me even with 5k distance, so I decided to debug it a little further, and after a few minutes trying to understand why distance values (when deciding were to spawn) were SO high (150k up) I finally figured it out.

    Basically when the plugin is deciding if a spawn is has a suitable distance, for performance reasons (since they don't need to know the exact distance) the result of the distance is squared. Also mentioned in the docs.

    TL;DR: Square dm_spawn_distance to get the correct radius
    boboffuture is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 22:41.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode