Again this is controlled by the server.
If non-host has 0 on dvar it'll look like it is but it won't be the same for the host.
Come again? You mean it only affects the host or what? I don't get what you mean by 'it'll look like it is'.
you script now? :gusta:it's impossible to get this to work both sides properly :please:
I dont care if it doesnt work properly. I am just happy to see someone as talented as stevie take up yet another skill in modding.
Lol this isn't really 'scripting', I just found this dvar and made this ages ago and used my brain to copy and paste a similar function to get the dvar to work as I wanted.
DUKIP had to go and ruin it though. :'( Works fine in solo anyway and won't have any negative effects in co-op so fuck it. People add D2P which is broken AF in co-op and they don't mind. :P
Dude it won't work in co-op as this dvar is only useful on the host.
Host -> player1 -> your cool down time = 1
player1 -> nah fuck you it's 0 -> host
host -> lolurfunnykid -> player1 -> your cool down time will always be 1
Edit:
What will happen in game:
Shoot -> settle -> broken anim plays if you try to shoot (doesn't actually send a bullet) -> waits until burst is available -> shoots
repeat.
Lol this has been in both my maps for months and nothing 'broken' happens at all. All it's gonna do is have clients have the default burst cooldown of 0.2 secs which they would have anyway with or without this script.
If you want to see 'broken' stuff for clients check out any map with D2P in it.
do you not understand that if the client has a modified player_ (along with a bunch of others) dvar the host will ignore it?
This is to prevent cheating you go try it in a public game and let me know.
Why would the host care if the clients have 0.2 secs burst fire cooldown or 0.1 secs cooldown lol? Like I said, for like the 3rd time, if the host ignores it THEY WILL STILL HAVE THE DEFAULT 0.2 SECS COOLDOWN - THE SAME AS IF THE SCRIPT IS THERE OR NOT. It doesn't affect anything negatively. This is hardly a game changing DVAR lol, we're talking about 10th of seconds difference on a burst delay here, not setting player health or something that actually impacts on the game or is important. :poker:
I think what he's trying to say is:
In COOP the host(server) > clients(other players). All settings are synced with the server and any changes made to the client's dvar don't do anything that actually impacts the game. This is why using cheats like godmode in servers with cheats disabled won't work(same applies to this).
The way this post/script is set up makes it sound like it works on all. Nobody would give a rat's ass if it only works on host but because it doesn't apply to non-host and you saying it doesn't matter but the post makes it assume it does irritates me.
As it obviously doesn't work as intended for normal scenarios.
yeah at least I would specify in the OP that this will only help the host and/or people playing solo. The dvar for clients is read from the host value, so no matter what the client value is set to in-game (even if they set it from their own console or you set it for them via GSC/CSC), it will read from the initial host value for cheat protection.
And if co-op cheats are enabled?I don't think it matters. It's considered read-only for clients.