You are not logged in.
Pages: 1
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
Hello,
can you show me your edited script? Maybe i can find the problem.
Offline
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
Pages: 1