set g_mapScriptDirectory ""


(BlackEight) #1

Hello
I run some interesting campaigne and i want to make one map from this campaigne as a fun map…i mean to add into this one map low gravity, instant spawn, pf only etc. Do i do that by set g_mapScriptDirectory “” ? If so, what should i do? I understand that i have to make some cfg file but what should i write in this cfg so that only that one map could have such settings?

Regards,
Eight


(Darkix) #2

You could edit the script of the map itself with;

%SPAWN% 1
g_gravity #

Don’t know about pf only though, I think that needs to be an entirely different mod. Wait for someone with more knowledge to answer :stuck_out_tongue:


(stealth6) #3

might want to post what mod you are running anyway it generally works like this:

you make a new directory inside your mod folder for example NQ/mapconfigs

Then in the script you set
set g_mapScriptDirectory “mapconfigs”

then inside this folder you have a default config and a config per map
This is an example of what I used on NQ 1.2.7

default.cfg


set jp_insanity 			"900"
set g_doubleJump 			"0"
set g_useraxisrespawntime 	"15"
set g_useralliedrespawntime 	"15"
set nq_war				"8188"
set g_gravity			"800"
set g_speed				"320"

goldendunk_a2.cfg


set jp_insanity 			"916"
set g_doubleJump 			"2"
set g_useraxisrespawntime 	"2"
set g_useralliedrespawntime 	"2"
set nq_war 				"5677"
set g_gravity			"700"
set g_speed				"360"

the default.cfg is executed every map, the map specific ones only on their map.
(the .cfg name has to be the same as the .bsp name of the map)


(Darkix) #4

Like I said, stealth is smarter than me (:


(phisherman) #5

[QUOTE=stealth6;227184]Then in the script you set
set g_mapScriptDirectory “mapconfigs”[/QUOTE]For doing what your description says, you will need the CVAR g_mapConfigs, not g_mapScriptDirectory. Works the same ( relative path ).


(stealth6) #6

oh yes indeed, map configs not map scripts

map scripts are for instance if you want minor changes in a map that are performed by a script.
Like what phisher did in oasis to make a block on top of oasis wall.


(ThaMasta) #7

why mine dont work ? 2.60b NQ1.2.7
i put this on server.cfg

set g_mapConfigs “nq/mapconfigs”

(i have tryed set g_mapScriptDirectory “nq/mapconfigs” but this is not working too)

i created a file called caen2.cfg whit this:

set jp_insanity 3212
set g_doubleJump 1
set g_useraxisrespawntime 15
set g_useralliedrespawntime 20
set nq_war 0
set g_friendlyFire 32
set g_alliedSpawnInvul 4
set g_axisSpawnInvul 4

and i have created the directory mapconfigs in the NQ directory

Thanks,

ThaMasta


(phisherman) #8

Well did you actually restart the server or reload the config after you changed it?


(ThaMasta) #9

yeah, each time i do some modification i close and restart the server !


(stealth6) #10

facepalm
I said
set g_mapScriptDirectory “mapconfigs”
which would in your case be
set g_mapConfigs “mapconfigs”

NOT

set g_mapConfigs “nq/mapconfigs”

Also you need a default.cfg with default values in it, otherwise after caen it will still have the same settings as caen.

Also in your other post you said you don’t feel like looking through 20 posts to find an answer, well we don’t feel like answering the same obvious questions 20 times either.

If you can’t handle it then I’d say don’t start a server, just join somebody elses…


(BlackEight) #11

Hello
I run nq 1.2.5 so i think for me this will be set g_mapScriptDirectory “”/// :slight_smile:
Will post if everything is ok.

Thanks for you feedback and ill try to load new settings.

Regards,
Eight

PS Have you plaied nq 1.2.8 yet? Is that mod worth installing/playing?


(BlackEight) #12

Sorry for double post but what should i write to have only one class avaiable in this one map, soldier for egample with only paner and kar/bar?


(phisherman) #13

NQ 128 is not yet released, but if there are no new bugs, this will be the best NQ version ever made.

Again, you will need g_mapConfigs, not g_mapScriptDirectory. With NQ 125, there are not very good opportunites to do this without LUA. But you cold disable all other classes and all the other heavy weapons except of Panzerfaust/Bazooka. Though, players will still be able to use their Sidearm.


(BlackEight) #14

Aha, thanks.
How can i disable class?


(zstarsales04) #15

Hello, everybody, I am new here. Here is something might be helpful for you.www.zstar.hk www.edgei-ds.cn (many movies to download)www.tigersupermall.com


(phisherman) #16

[QUOTE=BlackEight;227661]How can i disable class?[/QUOTE]Look here:

team_maxCovertOps
team_maxEngineers
team_maxFieldOps
team_maxMedics
team_maxSoldiers


(BlackEight) #17

Thanks. Yet i have a bit of problem. I have such file in mapconfigs ctf_pool_v2.cfg and when this map comes, new settings loads for her but this is not exactly what i wanted:

set g_useraxisrespawntime “2”
set g_useralliedrespawntime “2”
set g_gravity “340”
set g_doubleJump 2///jaymod style///verify
set g_doubleJumpHeight 2.0///
set jp_insanity 514

set g_heavyweaponRestriction 1
set g_soldierChargeTime 20000

set team_maxSoldiers -1
set team_maxMedics 0
set team_maxEngineers 0
set team_maxFieldops 0
set team_maxCovertops 0

set team_maxPanzers -1
set team_maxMortars 0
set team_maxRifleGrenades 0
set team_maxMG42 0
set team_maxFlamers 0
set team_maxShotguns 0 /////////////////all to veryfi
set team_maxVenoms 0
set team_maxLMGs 0
set team_maxScopes 0
set team_maxLandmines 0
set team_artyTime 0 ///
set team_airstrikeTime 0 //
set team_panzerRestriction 1 ///in later time

set g_missileHealth 5 ////
set g_missileSpeed 2300 ///to verify
set g_missileGravity 2 ///2

I want to ask about highlighted things. When map loads there should be panzer for all but only one persong in each team can take panzer/bazooke. When others want to take them “You cant take panzer” sort of statement comes out. Can this have sth do with panzer or heavy weapon restriciton? How about if i set both restrictions to “0” value?

Regards,
Eight


(Cambodunum) #18

g_heavyWeaponRestriction

100 is default. As i understand it, for soldier weapons it refers to the percentage of the team that can select EACH heavy weapon. e.g., if you set it to 20, and in the game there are 10 players on a team, each side could then have up to two panzerfausts, two flamers, two mg42’s and two mortars. If the team has no flamers, this does not allow them to take any additional Panzers.

team_panzerrestriction (New since 1.2.0)
Description
Enables an X amount of panzers (or bazookas), based on a given percentage weighed against the amount of players on the server. If set to 10(%) on a 20 player slot server, up to 2 panzers per team max. are enabled. If the threshold is undershot during gameplay, the panzer is dropped and the player is forced to use his secondary weapon.
Parameters
Type: [0-100]
Default: 0

… greetz Cambo


(stealth6) #19

in other words:
set team_panzerRestriction 0
set g_heavyweaponRestriction 0

fixes your problem


(valkyr) #20

Shouldn’t that be something higher than 1? 0 means 0% of players are allowed panzer going by the description above…