ETMods.net

N!tmod, a Wolfenstein: Enemy Territory Modification!

You are not logged in.

Announcement

You can donate to help us keeping services online.

#1 23-Aug-20 09:07:17

zaytuna
Member
Registered: 23-Aug-20
Posts: 1

weapon scripts

hi i configured the scripts like shown here, basically i just wanna change the amount of ammo that you start with. i have 2 classes enabled on my server. it works for the field ops but not for the medic. the medic always spawns with only 1 clip

would be very thankful for help

http://etmods.net/forums/viewtopic.php?id=250

Last edited by zaytuna (23-Aug-20 09:25:33)

Offline

#2 23-Aug-20 11:54:17

jay1110
BETA Tester
Registered: 01-Sep-12
Posts: 239
Website

Re: weapon scripts

Hello,

can you show me your edited script? Maybe i can find the problem.

Offline

#3 23-Aug-20 16:16:02

zaytuna
Member
Registered: 23-Aug-20
Posts: 1

Re: weapon scripts

jay1110 wrote:

Hello,

can you show me your edited script? Maybe i can find the problem.

yes sure this is an example for the mp40 (mp40.weap)

weaponDef
{
//Custom stuff start here.
	both {
		name "MP40"					// Name of the weapon
		defaultStartingAmmo 352			// Ammount of ammo you spanw with
                defaultStartingClip 32                     // Ammout of ammo in the 1st clip you spawn with
		maxammo 384					// Max ammo you can carry for this weapon
		maxclip 32						// Max ammount of ammo in clip for this weapon
	}
//End of custom stuff

// This is from the original .weap files (found in etmain/pak0.pk3 
// or nitmod/nitmod_*.*.pk3.
// MUST BE ADDED IN EVERY WEAPON SCRIPT
	client {
		standModel			"models/weapons2/mp40/mp40_stand.mdc"
		pickupModel			"models/weapons2/mp40/mp40.md3"
		
		weaponConfig		"models/weapons2/mp40/weapon.cfg"
		handsModel		"models/weapons2/mp40/v_mp40_hand.mdc"
		
		flashDlightColor	1.0 0.6 0.23
		flashSound			"sound/weapons/mp40/mp40_fire.wav"
		flashEchoSound		"sound/weapons/mp40/mp40_far.wav"

		reloadSound			"sound/weapons/mp40/mp40_reload.wav"
		reloadFastSound		"sound/weapons/mp40/mp40_reload_fast.wav"

		weaponSelectedIcon	"icons/iconw_mp40_1_select"

		ejectBrassFunc		"MachineGunEjectBrass"		
		
		firstPerson {
			model		"models/weapons2/mp40/v_mp40.md3"
			flashModel		"models/weapons2/mp40/v_mp40_flash.mdc"

			weaponLink
			{
				part 0
				{
					tag		"tag_barrel"
					model	"models/weapons2/mp40/v_mp40_barrel.mdc"
				}
				part 1
				{
					tag		"tag_barrel2"
					model	"models/weapons2/mp40/v_mp40_barrel2.mdc"
				}
				part 2
				{
					tag		"tag_barrel3"
					model	"models/weapons2/mp40/v_mp40_barrel3.mdc"
					axisskin	"models/weapons2/mp40/mp40_axis.skin"
					alliedskin	"models/weapons2/mp40/mp40_allied.skin"
				}
			}
		}
		
		thirdPerson {
			model		"models/weapons2/mp40/ss_mp40.md3"
			flashmodel		"models/weapons2/mp40/mp40_flash.mdc"
		}
	}
}

also i have set the server to gametype 7(team deathmatch) and i limited the max lives to 4, but now when I play 1vs1 and somebody runs out of lives the match doesn't end, i need to reset the match manually, can you help me out with that too please`?

Last edited by zaytuna (23-Aug-20 16:22:03)

Offline

Board footer

Powered by FluxBB