Q1STYLE INSTANT WEAPONS SWITCHING

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.
User avatar
morbidtwatt
Posts: 136
Joined: Fri Aug 15, 2003 7:56 am
Location: frederick md

Q1STYLE INSTANT WEAPONS SWITCHING

Post by morbidtwatt »

yes ive tried so hard to get this to work in bex nope it always crashes..i setup duration speeds of the lower and raise frames of all guns to 0 and it wigs outs after 2 mins of ingame fun any ideas if it can be done with zdoom at all i canre not if you guys scipt it anyways it doesnt have to be in bex as long as its done u know :)
User avatar
wildweasel
Posts: 21705
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed

Post by wildweasel »

I've seen somewhat instant weapon switching in Cory Whittle's Q3-DM for ZDoom...go get it at http://www.doomworld.com/immoralconduct and see how he did it. I know it takes time to lower the weapon, but he got instant raising in there...
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm

Post by randi »

Try giving the player the PROP_INSTANTWEAPONSWITCH property with ACS.
User avatar
morbidtwatt
Posts: 136
Joined: Fri Aug 15, 2003 7:56 am
Location: frederick md

Post by morbidtwatt »

how would i do that im fairly new to acs still learning it tehe :)

btw randy awesome port man youve like made my dreams come true for doom me sucks your big toe now
User avatar
bimshwel
Posts: 760
Joined: Tue Jul 15, 2003 5:15 pm
Preferred Pronouns: It/Its
Operating System Version (Optional): windows 10 now
Graphics Processor: nVidia (Modern GZDoom)
Location: misplaced

Post by bimshwel »

Setting the deselect (or the other one, I do not recall) duration to 0 will lock up the game if a player using the weapon is killed, I assume because with no next weapon to go to, the game just loops the frame endlessly. And 0 does not agree with that sort of thing. It never has.

No longer a relevant comment, but that's when it happens if it's going to.
User avatar
Ultraviolet
Posts: 1152
Joined: Tue Jul 15, 2003 9:08 pm
Location: PROJECT DETAILS CLASSIFIED.

Post by Ultraviolet »

Try using a duration of 1 instead. You'll hardly notice it.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm

Post by randi »

Use a script like this:

Code: Select all

script 55 open
{
    SetPlayerProperty (1, YES, PROP_INSTANTWEAPONSWITCH);
}
Change the 55 to some other number if you already have a script 55.
User avatar
morbidtwatt
Posts: 136
Joined: Fri Aug 15, 2003 7:56 am
Location: frederick md

Post by morbidtwatt »

what about compatibility is it possible to have my instant weapons switch patch work for any wad without me making another acs script for a foreign wad?

some doomers told me i had to make this acs script for all the maps i have including ones that werent made by me if i want to use this instant weapon switcing is this true?
User avatar
bimshwel
Posts: 760
Joined: Tue Jul 15, 2003 5:15 pm
Preferred Pronouns: It/Its
Operating System Version (Optional): windows 10 now
Graphics Processor: nVidia (Modern GZDoom)
Location: misplaced

Post by bimshwel »

Ultraviolet wrote:Try using a duration of 1 instead. You'll hardly notice it.
That's what they are by default. I won't notice it at all.

Return to “Editing (Archive)”