switching weapons not allowed

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
metaldemon
Posts: 60
Joined: Fri Jul 24, 2009 2:08 pm
Location: somewhere i belong

switching weapons not allowed

Post by metaldemon »

ok guys. i maded several weapons. those weapons are working but they are also pissing me off.
i've asked on skulltag for the problems i gonna ask you guys now.but they dident knew how to solve this.
i've looked upon the zdoom wiki too.

my problems:

i cannot summon my weapons. ive maded a spawn state, doomED number, putted the sprites between SS_start and SS_end.
i cannot give the weapons in my cnsole as long as i carry an higher ranked weapon.
i cannot switch between weapons when i have my weapon selected. i have give the weapon an doomED number, puuted in the playerpawn as Add.slot 3(rifle).

and they still just wont work.

i thought, zdoom might just know :)
User avatar
StarScream
Posts: 73
Joined: Tue Oct 09, 2007 10:08 pm
Location: Aus

Re: switching weapons not allowed

Post by StarScream »

It would definetly help us to help you if you put up your weapons code or upload the Wad in question.
You could have various problems with your DECORATE code which are unidentifiable as of now.
User avatar
Dark-Assassin
Posts: 742
Joined: Thu Mar 19, 2009 3:40 am
Location: South Australia

Re: switching weapons not allowed

Post by Dark-Assassin »

metaldemon wrote:i cannot summon my weapons. ive maded a spawn state, doomED number, putted the sprites between SS_start and SS_end.
Make sure it is like this.

Code: Select all

Spawn:
ROLF -1
Stop
This is the most common way.
metaldemon wrote:i cannot switch between weapons when i have my weapon selected. i have give the weapon an doomED number, puuted in the playerpawn as Add.slot 3(rifle).
It is best to create a KEYCONF section for the weapon like this.

Code: Select all

WeaponSection MyWeps
Setslot # $YourWeapon$
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: switching weapons not allowed

Post by Graf Zahl »

ds201 wrote: It is best to create a KEYCONF section for the weapon like this.

Code: Select all

WeaponSection MyWeps
Setslot # $YourWeapon$

It is better to use the official features inside DECORATE to assign slots. KEYCONF is outdated.
Gez
 
 
Posts: 17938
Joined: Fri Jul 06, 2007 3:22 pm

Re: switching weapons not allowed

Post by Gez »

See the article on [wiki]weapon slots[/wiki] for an overview of all different methods available, their pros and their cons.
User avatar
metaldemon
Posts: 60
Joined: Fri Jul 24, 2009 2:08 pm
Location: somewhere i belong

Re: switching weapons not allowed

Post by metaldemon »

StarScream wrote:It would definetly help us to help you if you put up your weapons code or upload the Wad in question.
You could have various problems with your DECORATE code which are unidentifiable as of now.
here you go:
Spoiler:
ds201 wrote:
metaldemon wrote:i cannot summon my weapons. ive maded a spawn state, doomED number, putted the sprites between SS_start and SS_end.
Make sure it is like this.

Code: Select all

Spawn:
ROLF -1
Stop
This is the most common way.
metaldemon wrote:i cannot switch between weapons when i have my weapon selected. i have give the weapon an doomED number, puuted in the playerpawn as Add.slot 3(rifle).
It is best to create a KEYCONF section for the weapon like this.

Code: Select all

WeaponSection MyWeps
Setslot # $YourWeapon$
@ spawn state: read the code ;)


@ keyconf: did that. but it dident change a thing :s

Gez wrote:See the article on [wiki]weapon slots[/wiki] for an overview of all different methods available, their pros and their cons.
i read that, added the MAPINFO lump and it says:

Code: Select all

 error: MAPINFO line 1 :
syntax error 
Gez
 
 
Posts: 17938
Joined: Fri Jul 06, 2007 3:22 pm

Re: switching weapons not allowed

Post by Gez »

metaldemon wrote:
Gez wrote:See the article on [wiki]weapon slots[/wiki] for an overview of all different methods available, their pros and their cons.
i read that, added the MAPINFO lump and it says:

Code: Select all

 error: MAPINFO line 1 :
syntax error 
You did not read the article correctly. It was saying the recommended method for mods was to use the Weapon.SlotNumber property in the DECORATE code of the weapons.
Locked

Return to “Editing (Archive)”