diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-07-15 13:24:02 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-07-15 13:24:02 +0200 |
commit | 5cdc8ebfc602e18361195ce35444112f1bdd7353 (patch) | |
tree | f137aac18b7cc308ed265da45b628d7c9d5426f6 | |
parent | 8b4eba85c9a93dceae20d21374b12bc6317e6366 (diff) | |
download | NorthstarWiki-5cdc8ebfc602e18361195ce35444112f1bdd7353.tar.gz NorthstarWiki-5cdc8ebfc602e18361195ce35444112f1bdd7353.zip |
Document command for fake lag
-rw-r--r-- | docs/modding-and-development/testing.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/modding-and-development/testing.md b/docs/modding-and-development/testing.md index 0ed94dd..1f367ee 100644 --- a/docs/modding-and-development/testing.md +++ b/docs/modding-and-development/testing.md @@ -37,3 +37,16 @@ After testing, make sure to mention the steps tested in your review. - For titan: `ent_create npc_titan; ent_fire !picker setteam 2` - For grunt: `ent_create npc_soldier; ent_fire !picker setteam 2` + + +**Add fake lag for network testing** + +`net_fakelag 200` -> 200ms network lag + +``` +] find net_fake +[info] "net_fakelag" = "0" ( CHEAT ) - Lag all incoming network data (including loopback) by this many milliseconds. +[info] "net_fakeloss" = "0" - Simulate packet loss as a percentage (negative means drop 1/n packets) +[info] "net_fakelag_clientOnly" = "1" ( CHEAT ) - Fakelag won't affect the server, only clients +[info] "net_fakelagjitter" = "0" - Jitter net_fakelag packet time +``` |