Page 1 of 1

Selecting my weapon!

Posted: Thu Apr 24, 2008 22:46
by twinkieman
i can't seem to get my weapon to select! i have tried all options to select it, but it just doesn't want to! so, it must be something in the code right?

Code: Select all

ACTOR m1garand : weapon
{
weapon.ammotype "clip"
weapon.ammouse 1
weapon.ammogive 20
states
{
	Ready:
		RIFG A 1 A_WeaponReady
		Loop
	Deselect:
		RIFG A 1 A_Lower
		Loop
	Select:
		RIFG A 1 A_Raise
		Loop
	Fire:
		RIFF A 4 A_FireBullets (2.5,2.5,1,10)
		RIFG D 1
		RIFF B 1 A_Refire
		Goto Ready
}
}
is there anything wrong?

Posted: Fri Apr 25, 2008 13:30
by DuduKrazy
do you have a KEYCONF lump in your wad?

Posted: Fri Apr 25, 2008 13:41
by wildweasel
Your code looks fine to me - you'll need to make sure it's defined in KEYCONF:

Code: Select all

weaponsection "Twinkie"

addslotdefault 3 M1Garand[code]
Or if you just want to test it without adding it to KEYCONF quite yet, try selecting it from the console:
[code]USE M1GARAND
And also, obviously, make sure all the necessary graphics are present in the wad file.