only one nade server mod

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

only one nade server mod

Post by agentmad007 »

Hi all ,

i've tried several ways to make a one nade only server mod For BREAKTHROUGH, cant make it work .

models/weapons contains all the tiki files + .txt files that i have to edit .

I tried

startammo 1 without success....

Someone have an idea ?
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

That's for the singleplayer mode, look for: dmstartammo 6
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

models/weapons===>steilhandgranate_base.txt

look what it look like below:

Code: Select all



		sp startammo	1
		dm startammo	1
		sprealism startammo	1
		dmrealism startammo	1


I have still 4 grenades with the rifle!

ps:I created a new folder models/weapons where I have added these .txt.

thx for any help
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post by MPowell1944 »

This is for Breakthrough, which means that the gun you select determines the amount of grenades you get. In each weapon's .tik file, you must set the grenade amount like this :

Code: Select all

// Additional DM loadout
dm additionalstartammo "grenade" 2
dm additionalstartammo "smokegrenade" 1
dm startitem "items/binoculars.tik"

// Additional DM Realism loadout
dmrealism additionalstartammo "grenade" 2
dmrealism additionalstartammo "smokegrenade" 1
dmrealism startitem "items/binoculars.tik"
Make the changes in this part of the .tik file for each main weapon.

If you have any other problems, do not hesitate to ask. Good luck.
{DOGZ}Herr Klugscheisser
Lance Corporal
Posts: 19
Joined: Sat Jul 26, 2003 4:35 am
Location: New Jersey

Post by {DOGZ}Herr Klugscheisser »

Hey I did this no problem. However, you have to look in the Russian & British grenade projjectile file because the above mentioned way will actually give these two nationalities 2 nades. There is a extra line of code in these two files which gives an extra grenade. It took me a little while to find it.


We were running only 1 frag grenade and our server crashes periodically from the use of only one nade. I remove the nade and all is fine. Our other server I gave 1 frag, 1 smoke and 1 gas and everything is fine. Go figure.

Has anyone else had this problem with giving one frag nade and the server crashing a couple times a day? We are running Breakthrough by the way. I know Buzz Litebeer had a AA fix, and I tried to apply that, but it still crashed.
Post Reply