PDA

View Full Version : MOHSH Please Help ! :)


thejoker14
01-13-2008, 09:21 PM
Hello There

Im After Some Help After Days And Days Of Searching The World Wide Web,

Basically Im New To Modding, And Slowly Learning Things By Changing Values And Then Seeing whats Happened In MOHSH,

What Im Trying To Do:

Im using 4 different config files all the time and they are: Rifle Only Match Server, Rifle Only Fun Server, All Weapons Match Server And All Weapons Fun Server,

Now Ive Made these configs and got them working over the internet now the problem rises of ive made a pk3 that makes it rifle only but i have to keep taking the pk3 in and out of the servers game directory for it to change from rifle only to all weapons, what im after is to be able to leave the pk3 in and it execute when the rifle only match server.cfg gets exec and then when i exec all weapons cfg it turns off

now i know this is possible as i kind of understand on how to do it but upon me doing it, it doesnt work,

ive been told that the only way to do it is to use realism as a switch so that if realism is on then its rifle only then when realism is off its all weapons and to change each weapon.tiks dm values there is a part in each weapon.tik that says dm startitem weapons/weapon name.tik im ashuming that this is realism off, and the value that says dmrealism startitem weapons/weapon name.tik is the realism value, now upon changing these and then saving them into a pk3 they dont work. now i know that the directory of the .tiks in the pk3 are all correct as ive veryfied them against someone elses RIFLE ONLY mod

please could someone help me out with this or tell me if there is another way of doing it, ive thought about a script but then this can only be exec via dm precache and that loads upon every map wether it be rifle only or all weapons it wouldent work this way..

please someone help me !

Either put a second post in here or email me on TheJoker14@hotmail.co.uk

many thanks

[-GI-] Dragon

Part Of The [-GI-] Clan

www.gi-clan.me.uk

GaSplat
01-14-2008, 12:11 AM
You would have to use the realism (or aanother ) cvar to decide what code to run in your dmprecache script. This way it could support both approaches.

Did you ensure your mod was loading (made it last alphabetically in the mainta directory?) Name like zzzzzzzzMymod.pk3? If you didn't, then chances are something else is being used as the source for the tik files.

I'm not a master modder but off the top these could possible be of help.

thejoker14
01-14-2008, 08:02 AM
Hi There

Yes I Have Made It Alphabetically Last, And It Has Got A Few ZZzz's On The Start Of It, I Dont Understand What You Mean By What Code To Run In The Dm Precache.scr, Is It Possible For You To Make Summit to Show Me How You Have Done It And what You Have changed. as im new to modding,

many thanks

[-GI-] Dragon

Part Of The [-GI-] Clan

www.gi-clan.me.uk

Feel Free To Join Our Server When Its Done,

I.P 81.19.223.148:12201

GaSplat
01-15-2008, 01:07 AM
I am pretty sure you can check the value of a cvar in an 'if' type statement - but I have not done any of that in a long time.

MOD Theater (TMT - they have a link at the top of the web page) has some tutorials that should help you a lot more than I can in this forum.

Good luck.

SNYPE
01-22-2008, 03:06 PM
Hope this isnt too late to help....
I would say the usual way this is done is to have different MOH directories setup with the appropriate mods and cfgs for each type of server you want to run.
Make a copy of the base MOH directory and then paste the files into a new folder for eah game type: Rifle Only Match Server, Rifle Only Fun Server, All Weapons Match Server And All Weapons Fun Server. Add the mods and cfgs that are appropriate for each server type into its directory. This is how our clan runs our servers.
When you want to change to another server type just restart the server with the params for the server type you want to change to.