Jump to content

Quick easy for mapinfo to disable jump n crouch?


Clippy

Recommended Posts

Hey guys hey - so I am very slowly making a megawad and want to be sure ppl dont jump n crouch in GzedDoom

 

I have the map names in there as a dehacked list of map names but it seems like I have to actually add each map detail in mapinfo for this to work?

 

I want to just keep it as simple as possible lol - dont want to fill out map names twice eh

 

thanks for any help u all awesome

Share this post


Link to post

For MAPINFO, typically all you would need is the below block of code. But I'm not sure if this would affect your existing map names or not because I don't use dehacked and am not familiar with compatibility/incompatibility between using both things. Worth trying though.

 

defaultmap
{
    NoJump
    NoCrouch
}

 

Share this post


Link to post
1 hour ago, The DANDY Company said:

For MAPINFO, typically all you would need is the below block of code. But I'm not sure if this would affect your existing map names or not because I don't use dehacked and am not familiar with compatibility/incompatibility between using both things. Worth trying though.

 


defaultmap
{
    NoJump
    NoCrouch
}

 


This does work for me

Share this post


Link to post

defaultmap works on all subsequently defined maps, so you'll have to put it on the top of your MAPINFO.

Share this post


Link to post

For ZDOOM MAPINFO it's like this, I'm pretty sure - at least that's what I've done for all my MP stuff, and it has worked:

 

defaultmap
nocrouch

nojump

 

(you put this at the top)

Edited by Arrowhead

Share this post


Link to post

Thanks will try again. All I want in my MapInfo is to disable jump crouch. I already have the map names in the dehacked lump

Share this post


Link to post

defaultmap does do the trick, but yeah, you'll have to define all your maps in the mapinfo lump for it to actually do anything.

Share this post


Link to post
1 hour ago, maxmanium said:

defaultmap does do the trick, but yeah, you'll have to define all your maps in the mapinfo lump for it to actually do anything.

Right I want the shortest code that skips all that cause I don't want to define and copy all the map names over from the dehacked file

Share this post


Link to post
45 minutes ago, Clippy said:

Right I want the shortest code that skips all that cause I don't want to define and copy all the map names over from the dehacked file 

Then it may be a better idea to look into CVARINFO lump and sv_nojump/sv_nocrouch CVARs.

Share this post


Link to post
12 minutes ago, Doomy__Doom said:

Then it may be a better idea to look into CVARINFO lump and sv_nojump/sv_nocrouch CVARs.

Cvarinfo cannot modify cvars that already exist, it's only for defining new ones.

 

Their only option is to create MapInfo entries for their maps, thanks to GZDoom's weird non-compliant defaults.

Edited by Edward850

Share this post


Link to post
12 minutes ago, Edward850 said:

Cvarinfo cannot modify cvars that already exist, it's only for defining new ones.

 

Their only option is to create MapInfo entries for their maps, thanks to GZDoom's weird non-compliant defaults.

There's really no way to do it simple without defining maps eh. Kind of a pain lol. I didn't want to copy my map names twice since it's already in dehacked (and I keep changing them) lol 

 

Thank all 

 

 

Share this post


Link to post
19 hours ago, Clippy said:

There's really no way to do it simple without defining maps eh. Kind of a pain lol. I didn't want to copy my map names twice since it's already in dehacked (and I keep changing them) lol

If you don't want to double define your map names, you could use the lookup keyword in MapInfo, to make the maps use the same name that you have defined in dehacked.

defaultmap
{
    NoJump
    NoCrouch
}

map MAP01 lookup "HUSTR_1"
{
	titlepatch = "CWILV00"
	next = "MAP02"
	secretnext = "MAP02"
	sky1 = "SKY1"
	cluster = 5
	par = 30
	music = "$MUSIC_RUNNIN"
}

See this file for the default mapinfo definitions for doom2 maps: https://github.com/ZDoom/gzdoom/blob/master/wadsrc/static/mapinfo/doom2.txt

Share this post


Link to post
16 minutes ago, Worst said:

If you don't want to double define your map names, you could use the lookup keyword in MapInfo, to make the maps use the same name that you have defined in dehacked.


defaultmap
{
    NoJump
    NoCrouch
}

map MAP01 lookup "HUSTR_1"
{
	titlepatch = "CWILV00"
	next = "MAP02"
	secretnext = "MAP02"
	sky1 = "SKY1"
	cluster = 5
	par = 30
	music = "$MUSIC_RUNNIN"
}

See this file for the default mapinfo definitions for doom2 maps: https://github.com/ZDoom/gzdoom/blob/master/wadsrc/static/mapinfo/doom2.txt

 

Thank you so much you are the winner

 

I'm really surprised there is no way to avoid putting in any map stuff and just simply leaving it at no jumping no crouch as a complete and all map info command but if this is how it be this is how it be

 

You guys are all awesome 🍗

 

I just came back from a FANTASTIC walk

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...