Announcement

Collapse
No announcement yet.

SOCOM II : Force Demolition (Spawn MPBOMB in any map)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SOCOM II : Force Demolition (Spawn MPBOMB in any map)

    This code will spawn the MPBOMB into any map. It will also set the map type of the room to demolition. If the room is a respawn the room will continue to be a demolition respawn. With a bit more code I might be able to create a fully working demolition game type for every map.

    Code:
    /*
    Codes Designer Source
    Credit: Cronotrigga
    Patch: r0001
    Force Demolition
    */
    
    address $200a0000
    __Demolition:
    addiu sp, sp, $FFD0
    sw ra, $0000(sp)
    sw s0, $0004(sp)
    
    //set the map type to Demolition
    setreg v0, $00c49784
    setreg t1, $03010200
    sw t1, $003c(v0)
    
    //check seal pointer
    //this tells us if we are in game
    setreg v0, $00440c38
    lw v0, $0000(v0)
    beq v0, zero, :__MPBOMB_END
    nop
    
    //set MPBOMB Spawn Coords
    setreg t0, $4434C8BE
    setreg t1, $42C80200
    setreg t2, $446F99A2
    setreg v0, $004413b4
    sw t0, $0000(v0)
    sw t1, $0004(v0)
    sw t2, $0008(v0)
    
    //remove the MPBOMB
    //jal $002c2590
    nop
    
    //spawn the MPBOMB
    jal $002c1a80
    nop
    
    //spawn the MPBOMB Indicator
    jal $002c2260
    nop
    
    __MPBOMB_END:
    lw ra, $0000(sp)
    lw s0, $0004(sp)
    jr ra
    addiu sp, sp, $0030
    
    
    address $D044F15C 
    hexcode $0000F3FF
    address $202CED04
    j :__Demolition
    
    
    address $D044F15C 
    hexcode $0000FFFF
    address $202CED04
    jr ra
    nop
    
    //debug codes
    address $20694d48 
    hexcode $00010000
    
    address $20c49788
    hexcode $ffffffff

    Click image for larger version

Name:	MPBOMB.png
Views:	2
Size:	507.9 KB
ID:	163896
    Click image for larger version

Name:	MPBOMB2.png
Views:	2
Size:	412.5 KB
ID:	163897

  • #2
    I'm taking it the demolition areas for both teams most likely spawn in via a similar manner. I can't remember if the demo areas were the same size or different sizes depending on the map. It would be great to make a few more maps demo and add them to the create lobby map selection list.
    Last edited by Harry62; 05-17-2016, 06:31:27 AM.

    Comment


    • #3
      Originally posted by Harry62 View Post
      I'm taking it the demolition areas for both teams most likely spawn in via a similar manner. I can't remember if the demo areas were the same size or different sizes depending on the map. It would be great to make a few more maps demo and add them to the create lobby map selection list.

      Yeah so basically the coords I set are for frostfire at the moment. For each map you will have to find the area you would like the bomb to spawn and add it to the code. When i have more time I will go through the maps and write a small sub to handle the coords based off the map package loaded.

      As of right now there is nothing to blow up, I believe taking the action pointers we found before and attaching the satchel action to other objects may allow this to be possible or possibly spawning the demo sites may work.

      Comment


      • #4
        Frost Fire Demolition! right on good work

        Comment

        Working...
        X