• Announcements

    • Brentonator

      Forum Rules (Please Read)

      Hello everyone and welcome to the No More Room In Hell Forums! We greatly appreciate your interest and support. Please feel free to begin post and become a part of this community. But please make sure that you read and understand the following rules so things can stay as clean and as orderly as possible around here. These rules are expected to be follow by any and all members at all times. Disobeying these rules will result in disciplinary action by a moderator. #1. Off color remarks are acceptable but can be deemed inappropriate at the discretion of the moderators. #2. Flaming and disrespecting other members of this community or this mod is strictly prohibited. #3. Please do not post links relating to warez or illegal downloading. #4. No offensive content is to be posted (gore, dead babies, porn). #5. Please do not spam topics to increase your post count. #6. No excessively large signatures. Signatures that violate this will be modified. #7. Signatures are not to be used as a spamming tool. If your signature's sole purpose is to annoy or distract other members, it will be removed. #8. Please do your part to be as friendly, respectful, and helpful to anyone and everyone on this forum. #9. Your posts may be removed at any time at our sole discretion. #10. Remember the terms of your registration...a copy is posted below but may not represent the latest version of our terms of use. #11. No advertising other communities or products. Have fun.
Sign in to follow this  
Followers 0
Mr. Halt

[TUT] How to modify scripts of 'Difficulty'?

7 posts in this topic

Sorry for bad English. But, I want to inform to you guys.

Reason of why I writing this, MurderCron who is Xblivious servers' owner deleted his own posts. (Like a information of scripts)

Casual:

Infinite Respawns (Have tokens: on 5 seconds | No tokens: on 30 seconds)

Can get melee weapons or guns when round starts

Can get tokens when players killed 10 zombies on every maps. (Includes NMO, NMS maps)

*Token: When you killed a lot of zombies, you can get tokens which are when you died by zombies, you can respawn on 5 seconds. Or if RespawnAllowed is enabled (If you want to know this thing, scroll down!), you can respawn even you have no tokens.

---

Classic:

No Infinite Respawns

Token systems only enabled on NMS maps.

Can't get token when playing on NMO maps.

Can get tokens when players killed 40 zombies on NMS maps.

---

Nightmare:

No Infinite Respawns

Token systems disabled on every maps. (Includes NMO, NMS maps)

Infection change is 86%. (Casual, Classic: 2.5%) - Devs said nightmare difficulty's infection chance is 85%.

Zombies spawn change on OBJECTIVE (NMO) maps is 150% (Casual, Classic: 100%)

Can't see players name

---

THIS IS HOW TO MODIFY DIFFICULTY SCRIPTS

1. You need to get .bat files decompile .ctx scripts or see 'this topic'.

If you want to get .bat files, see this.

Original .bat file from https://forums.alliedmods.net/showthread.php?t=198004

I modified .bat file and also added new .bat file which is compile .txt to .ctx

- DOWNLOAD .BAT FILES -

https://drive.google.com/open?id=0B7N7_II_bqbUNmhuTnA3UWlBSTA

1. Go to Server folder\nmrih\scripts\difficulty, and put .bat, .exe things on that folder.

2. and drag & drop .ctx files on .bat

3. Type 7 and Press Enter... It will create .txt (Decompile) or .ctx (Compile).

If you decompiled difficulty scripts and want to modify these scripts, scroll down!

---

TokensEnabledObjective - If this thing is enabled (1), token system will be enabled on server which current map is NMO maps. If this thing is disabled (0), token system will be disabled on server.

KillsPerTokenObjective - If this thing's value is 10, you can get tokens when you killed 10 zombies on NMO maps.

TokensEnabledSurvival - If this thing is enabled (1), token system will be enabled on server which current map is NMS maps. If this thing is disabled (0), token system will be disabled on server.

KillsPerTokenSurvival - If this thing's value is 10, you can get tokens when you killed 10 zombies on NMS maps.

RespawnAllowed - Enable/Disable Infinite Respawn (1/0)
RespawnWithWeapon - Allow get weapons when players spawn/respawn

NearbySpawningEnabled - Allow players respawn near the players (Oops. Bad English warning!)

SpawnGrace - Currently, I don't know about details of this.
SpawnGraceWavePercent - Currently, I don't know about details of this.

ResetTokensOnNewWave - Like a old versions, when players survived on wave 2 or whatever, this removes players tokens.

RemoveInflictionsOnNewWave - When players survived on wave 2 or whatever, this removes infection of players.
HealAmountOnNewWave - When players survived on wave 2 or whatever, this will heal the players (Increase current HP | If players' health is max, this dosen't heal the players)

InitialTokenCountObjective - If this thing's value is 3, in NMO maps, you can get 3 tokens on round start.
InitialTokenCountSurvival - If this thing's value is 3, in NMS maps, you can get 3 tokens on round start.

ZombieHealth - Set zombies' health
ZombieSpawnDensity - Spawn chance of zombies when players playing on NMO maps.


BrainStemMode - On 1.09.4, Devs added 'Brain penetrate mode'. It is when bullets penetrate zombies' head between eyes and nose, any firearms can killed zombies by one shot.

InfectionChanceModifier - Chance of Infection (Sometimes, It seems like stucked on 2.5%. But... I don't know about details of that.)

FriendlyFireModifier - Damage percentage between me and another team-mates

(If you Increase this thing, if mp_friendlyfire is enabled, this will cause hardcore or PvP)

RunnerSpawnerChance - Runners' spawn Change (If you increase this thing, It will be hard)
ChildSpawnerChance - Kids' spawn Change (If you increase this thing, It will be 'Children's Day'. LOL

DisplayPlayerHealth - Show players health (You can see other players' health which colored like a green, orange and red.)

Difficulty: Casual

"Casual"
{
"TokensEnabledObjective" "1"
"KillsPerTokenObjective" "10"

"TokensEnabledSurvival" "1"
"KillsPerTokenSurvival" "10"

"RespawnAllowed" "1"
"RespawnWithWeapon" "1"

"NearbySpawningEnabled" "1"

"SpawnGrace" "-1"
"SpawnGraceWavePercent" "1.0"

"ResetTokensOnNewWave" "0"
"RemoveInflictionsOnNewWave" "1"
"HealAmountOnNewWave" "40"

"InitialTokenCountObjective" "3"
"InitialTokenCountSurvival" "3"

"ZombieHealth" "500"
"ZombieSpawnDensity" "1"
"BrainStemMode" "0"

"InfectionChanceModifier" "0.975"

"FriendlyFireModifier" "0.1"

"RunnerSpawnerChance" "0.075"
"ChildSpawnerChance" "0.5"

"DisplayPlayerHealth" "1"

}

Difficulty: Classic

"Classic"
{
"TokensEnabledObjective" "0"
"KillsPerTokenObjective" "0"

"TokensEnabledSurvival" "1"
"KillsPerTokenSurvival" "40"

"RespawnAllowed" "0"
"RespawnWithWeapon" "0"

"NearbySpawningEnabled" "0"

"SpawnGrace" "180.0"
"SpawnGraceWavePercent" "-1"

"ResetTokensOnNewWave" "0"
"RemoveInflictionsOnNewWave" "0"
"HealAmountOnNewWave" "0"

"InitialTokenCountObjective" "0"
"InitialTokenCountSurvival" "0"

"ZombieHealth" "500"
"ZombieSpawnDensity" "1"
"BrainStemMode" "0"

"InfectionChanceModifier" "0.975"

"FriendlyFireModifier" "0.1"

"RunnerSpawnerChance" "0.075"
"ChildSpawnerChance" "0.5"

"DisplayPlayerHealth" "1"
}

Difficulty: Nightmare

"Nightmare"
{
"TokensEnabledObjective" "0"
"KillsPerTokenObjective" "0"

"TokensEnabledSurvival" "0"
"KillsPerTokenSurvival" "40"

"RespawnAllowed" "0"
"RespawnWithWeapon" "0"

"NearbySpawningEnabled" "0"

"SpawnGrace" "180.0"
"SpawnGraceWavePercent" "-1"

"ResetTokensOnNewWave" "0"
"RemoveInflictionsOnNewWave" "0"
"HealAmountOnNewWave" "0"

"InitialTokenCountObjective" "0"
"InitialTokenCountSurvival" "0"

"ZombieHealth" "1000"
"ZombieSpawnDensity" "1.5"
"BrainStemMode" "1"

"InfectionChanceModifier" "0.14"

"FriendlyFireModifier" "0.5"

"RunnerSpawnerChance" "0.075"
"ChildSpawnerChance" "0.5"

"DisplayPlayerHealth" "0"
}

When you finished to modify difficulty scripts, compile .txt and overwrite original difficulty scripts!

(If you want to back up original scripts, back up that then.)

Edited by Mr. Halt

Share this post


Link to post
Share on other sites

Can't you just type sv_difficulty casual, classic , nightmare

Share this post


Link to post
Share on other sites

Can't you just type sv_difficulty casual, classic , nightmare

Actually, I know you don't need to modify difficulty scripts. Because maybe that is slighty hard and dosen't really need it.

But, on this tutorial, this is not for only change difficulty.

This is for advanced users, who want to set custom difficulty. (For Dodgeball, Infinite Respawns on every 5 seconds, Children's Day, Runners' Day)

In Dodgeball server, NMRiH default diffculty scripts are sucks for Dodgeball. (But, anyone doesn't play on Dodgeball server. LOL)

and some of oldbies (Who played under 1.06 versions | I'm included one of them) want to reset tokens when wave is ended. (But, it will be hard than other default difficulty)

and... on my server, I modified 'Nightmare' difficulty script which changed 'DisplayPlayerHealth' 0 to 1. Because I seems like too realism.

Anyway, thanks for that reply. Because I think everyone dosen't read my topics. LOL

Edited by Mr. Halt

Share this post


Link to post
Share on other sites

Actually, I know you don't need to modify difficulty scripts. Because maybe that is slighty hard and dosen't really need it.

But, on this tutorial, this is not for only change difficulty.

This is for advanced users, who want to set custom difficulty. (For Dodgeball, Infinite Respawns on every 5 seconds, Children's Day, Runners' Day)

In Dodgeball server, NMRiH default diffculty scripts are sucks for Dodgeball. (But, anyone doesn't play on Dodgeball server. LOL)

and some of oldbies (Who played under 1.06 versions | I'm included one of them) want to reset tokens when wave is ended. (But, it will be hard than other default difficulty)

and... on my server, I modified 'Nightmare' difficulty script which changed 'DisplayPlayerHealth' 0 to 1. Because I seems like too realism.

Anyway, thanks for that reply. Because I think everyone dosen't read my topics. LOL

Alright anyways thanks for the reply. I know what you are aiming at :P

Share this post


Link to post
Share on other sites

Bat did nothing to the file, then I tried cmd.

> vice3.exe -d -x .txt -k lREeeapA casual.ctx

>> Handled file: casual.ctx sucessfully.

This is what I got in the new file casual.txt

$Ñ…ï.½Ä8oÌ’Þs›~œ9ÓA¦4§°>ÍRö¢b®ÐsrŒrÔ[Ç"üc¤×É«UV–ÙM‹™»ZTUÕµHäˈáä€Ñ¹4gü·Ýe¯SÉ›±*1ÍýZ½ð¹º%O¿¢·'tFá:ÚÇEçkµgJx§ÒiØŸ”«üX+ïY>šõ¶÷P€·SðÛÂ˃R.sçJQ“µQžžEê\ìŸ5YZ’=z6Åi›Ð‘L•º#ç­~I‘Ÿ?Ã=»Y CY‹ìDZkKø‰Ùm…‰~È`À„-;Qz6åG a}¸!?T ¹ý±P^Á>Ƚyº¦Ì ”U)¨0pÿc¦üþè€>¥Yšyž×ݤÕù-?¨-+$÷ÊÕPkÀ,$OkÇ´'!ȯ—†Ó˼%®çÐ8iˆe–Õ³>ß'ŧk!M<´ˆU²5ïªå¸k„ª­><²‹¸ÐVÆÝ” r­-?ø`8( •kµí½è§›ZåáÊñÓÎZ‰Î7Mõx‰;¼n•)ü±êC/iŠœRö‘Ä6çÍ<H—‡–|äµï«¿ÏˆžÁPÀIO]«ü¬Íu™üøØ ¤š8Id@(z§J2“Â0TÃàiß­ m£’±¦@ð=®T*$Ñ¿êÄ[õCš@ñëá²ÕiÑËf‰à8E #¯fÏ‹eD$þÎnÛ’¦+$÷ÊÕPktµš1óªÑ0nï%@’š¦¶†`XìÁ4gOX¢FBC«—Ù»V%Y(¬õUOÓŽêÿc_e>!1x£7bCžÏñ±d«Åšºø®4f_»ðg/Å~ t|{òcÿ‹;%Š[iìD-_r­³*Ù‚Vù7àMÎ2—;£äé?ñ¥²/¬&à:\W÷µ6úŠã¿?BºÞg" }

Edited by zerosignal

Share this post


Link to post
Share on other sites

Bat did nothing to the file, then I tried cmd.

> vice3.exe -d -x .txt -k lREeeapA casual.ctx

>> Handled file: casual.ctx sucessfully.

This is what I got in the new file casual.txt

Maybe my batch file was corrupted. Sorry for about this.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0