Results 1 to 5 of 5

Thread: Map height

  1. #1
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts

    Map height

    Hello,

    I'm trying to edit Toujane - I need to triple its maximum height.
    Do I need Radiant for this or can I find the dimension values and edit with notepad++ or a hex editor?

    In case somebody doesn't know what I mean by maximum height - if you fly in a map and reach this height, you won't see enemies or hear your shots anymore. I need to increase this to increase the height that my gunship flies at (it's way too low in Toujane).


    Thanks in advance!
    set logfile 2

  2. #2
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    I do not know how or if you can extend the skybox.
    However, the stock maps use a texture called 'hint' (transparent greenish in tool iirc).
    Iirc this texture tells the server, that upon this plane bullets doesn't need to be tracked anylonger.
    Maybe this also prevents sounds been played. If its possible, you could hexedit this to another texture-type.
    Obviously only after you checked the max-distances of the soundaliases, and if I'm even right with my theory...

  3. The Following 2 Users Say Thank You to serthy For This Useful Post:

    guiismiti (26th September 2015),kung foo man (26th September 2015)

  4. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    My idea was to get the brush and just change the plane distances in the .d3dbsp, so I rewrote my old D3DBSP parser and added 10000 units to the 2 planes (up and bottom). The D3DBSP is loading fine (just zip it and rename to .iwd, .d3dbsp can't be loaded without being packed).

    The brush ID of the top skybox is #4500 and plane #4 and #5 are the bottom/up planes (brush has 6 planes, the start index in brushSidesLump is 43568). Planes are just normal (vec3) + distance (float).

    If anybody wants to test around with it, I attached the Visual Studio project as .zip

    Since the top sky brush is now higher, the spectators can fly over it, as seen here:

    Click image for larger version. 

Name:	fix.jpg 
Views:	58 
Size:	311.6 KB 
ID:	938

    The problem is, entities still disappear at the height of normal skybox. So that information is saved somewhere else... it would probably need a partial BSP rebuild, but I never learned the BSP tree stuff, so I can just guess.

    This .iwd contains the mp_fix.d3dbsp, if somebody wants to test: http://killtube.org/downloads/cod2/t...eight/maps.iwd


    Some debug data from parser, after applying the additional height:
    Code:
    file-offset for brush-lump: length=0x00000038, offset=0x0000003C
    brush[4500] numSides=  6 texture=0 brushSideIndex=43568
    brushide: 0 -15092 distance=-2240.00
    brushide: 0 17806 distance=4544.00
    brushide: 0 -15232 distance=-1024.00
    brushide: 0 17860 distance=6272.00
    brushide: 0 17664 distance=12048.00
    brushide: 0 17668 distance=12112.00
    ] end.
    Attached Files Attached Files
    Last edited by kung foo man; 26th September 2015 at 17:39. Reason: fixed dozens of errors lol
    timescale 0.01

  5. The Following User Says Thank You to kung foo man For This Useful Post:

    guiismiti (26th September 2015)

  6. #4
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    Found the $4500 brush in the converted .map file. I had already looked at it, but didn't test anything, since I don't know how to recompile a .map file
    Code:
     ( 4544 6272 2048 ) ( -2240 6272 2048 ) ( -2240 -1024 2048 ) sky_toujane 128 128 0 0 0 0 lightmap_gray 16384 16384 0 0 0 0
     ( -2240 -1024 2112 ) ( -2240 6272 2112 ) ( 4544 6272 2112 ) sky_toujane 128 128 0 0 0 0 lightmap_gray 16384 16384 0 0 0 0
     ( -2240 -1024 2112 ) ( 4544 -1024 2112 ) ( 4544 -1024 2048 ) sky_toujane 128 128 0 0 0 0 lightmap_gray 16384 16384 0 0 0 0
     ( 4544 -1024 2112 ) ( 4544 6272 2112 ) ( 4544 6272 2048 ) sky_toujane 128 128 0 0 0 0 lightmap_gray 16384 16384 0 0 0 0
     ( 4544 6272 2112 ) ( -2240 6272 2112 ) ( -2240 6272 2048 ) sky_toujane 128 128 0 0 0 0 lightmap_gray 16384 16384 0 0 0 0
     ( -2240 6272 2112 ) ( -2240 -1024 2112 ) ( -2240 -1024 2048 ) sky_toujane 128 128 0 0 0 0 lightmap_gray 16384 16384 0 0 0 0
    Last edited by guiismiti; 26th September 2015 at 17:57.
    set logfile 2

  7. #5
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Just install asset tools and use the map compiler ^^
    timescale 0.01

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •