Marvel Mods

Off-Topic => Video Games Talk => Topic started by: TIMELORD on April 11, 2015, 06:04PM

Title: Blocking
Post by: TIMELORD on April 11, 2015, 06:04PM
Hi All
Ive just added Cable to my collection and he does not block.Is there something missing in his herostat?
Title: Re: Blocking
Post by: Maegawa on April 11, 2015, 06:37PM
Make sure he has the following code in his herostat:
      talent {
      level = 1 ;
      name = block ;
      }
Title: Re: Blocking
Post by: TIMELORD on April 12, 2015, 01:12AM
This is his herostat.
   stats {
   ailevel = 1 ;
   autospend = bruiser ;
   body = 7 ;
   characteranims = 210_cable ;
   charactername = Cable ;
   level = 1 ;
   menulocation = XX ;
   mind = 8 ;
   name = Cable ;
   playable = true ;
   powerstyle = ps_cable ;
   scale_factor = 1.1 ;
   scriptlevel = 3 ;
   skin = 21001 ;
   skin_01_name = Classic ;
   skin_02 = 02 ;
   skin_02_name = Casual ;
   skin_03 = 03 ;
   skin_03_name = Tech Support ;
   skin_04 = 04 ;
   skin_04_name = X-Force ;
   skin_05 = 05 ;
   skin_05_name = Classic (Buff) ;
   skin_06 = 06 ;
   skin_06_name = X-Force (First Series) ;
   sounddir = cable_m ;
   strength = 10 ;
   team = hero ;
   textureicon = 0 ;
      BoltOn {
      bolt = Bip01 Spine2 ;
      model = models/weapons/cable_gun_back ;
      slot = ebolton_clawleft ;
      }

      Race {
      name = Mutant ;
      }

      Race {
      name = XMen ;
      }

      talent {
      level = 1 ;
      name = cable_smash ;
      }

      talent {
      level = 1 ;
      name = block ;
      }

      Multipart {
      health = 0 ;
      hideskin = 11901_gun_segment ;
      }

      talent {
      level = 1 ;
      name = melee_moves ;
      }

      talent {
      level = 1 ;
      name = leadership ;
      }

      talent {
      level = 1 ;
      name = fightstyle_cable ;
      }

      BoltOn {
      bolt = Bip01 Spine2 ;
      model = models/bolton/cable_shoulder_pads ;
      slot = ebolton_cape ;
      }

      StatEffect {
      bolt = Bip01 Head ;
      effect = char/cable/special_aura ;
      fxlevel = 1 ;
      menuonly = false ;
      zoneonly = true ;
      }

   }

Title: Re: Blocking
Post by: Outsider on April 12, 2015, 06:00AM
It may be either his powerstyle file (ps_cable) or his fightstyle file (fightstyle_cable) then. If you know how to, decompile either one using XLMBCUI, and locate the fightmove called "idle." (An easy way to do that is to hit Ctrl + F, then type "name = idle") If you find it, look at the chains. If you don't see the following...


      chain {
      action = blocking ;
      result = blocking ;
      }


...then it means he is unable to block. In which case, just add that code to it, save, and compile it back. Overwrite the original file. That'll fix it.

Title: Re: Blocking
Post by: TIMELORD on April 12, 2015, 09:00AM
Outsider,
Many thanks.I think i have found the problem in power styles, although i would like confirmation please.
I think this is the right section below.

FightMove {
   animenum = ea_idle1 ;
   handler = ch_idle ;
   lockchaining = false ;
   name = idle ;
   noncombat = true ;
      trigger {
      bolt = Bip01 Spine2 ;
      boltslot = ebolton_cape ;
      model = models/bolton/cable_shoulder_pads ;
      name = bolton ;
      skin_filter = 21001 ;
      time = 0 ;
      type = ce_bolton ;
      }

      trigger {
      bolt = Bip01 Spine2 ;
      boltslot = ebolton_cape ;
      model = models/bolton/cable_shoulder_pads ;
      name = bolton ;
      skin_filter = 21005 ;
      time = 0 ;
      type = ce_bolton ;
      }

      trigger {
      bolt = Bip01 Spine2 ;
      boltslot = ebolton_cape ;
      model = models/bolton/cable_shoulder_pads ;
      name = bolton ;
      skin_filter = 21006 ;
      time = 0 ;
      type = ce_bolton ;
      }

      chain {
      action = walk ;
      result = walk ;
      }

      chain {
      action = jog ;
      result = jog ;
      }

      chain {
      action = run ;
      result = run ;
      }

      chain {
      action = sprint ;
      result = sprint ;
      }

      chain {
      action = strafeleft ;
      result = strafeleft ;
      }

      chain {
      action = straferight ;
      result = straferight ;
      }

      chain {
      action = advance ;
      result = advance ;
      }

      chain {
      action = retreat ;
      result = retreat ;
      }

      chain {
      action = guard ;
      result = guarddecide ;
      }

      chain {
      action = attack ;
      result = attacklight1 ;
      }

      chain {
      action = smash ;
      result = attackheavy1 ;
      }

      chain {
      action = groundattack ;
      result = groundattack ;
      }

      chain {
      action = move ;
      result = jump ;
      }

      chain {
      action = special ;
      result = boredloop ;
      }

      chain {
      action = powers ;
      result = powers ;
      }

   }
Title: Re: Blocking
Post by: Outsider on April 12, 2015, 11:19AM
Yeah, that's the one. Notice the blocking code I've mentioned isn't there? That's why he's not blocking. Add that chain, save, compile it back, and overwrite. It'll fix him.

EDIT: And oh yeah, make sure to start a new game so the change can take effect.

Title: Re: Blocking
Post by: TIMELORD on April 12, 2015, 03:54PM
 Blocking ok now.
Many thanks
Title: Re: Blocking
Post by: Maegawa on April 12, 2015, 06:09PM
um, I thought it was only put the block code in the herostat and it was ok, but it has to be added in the powerstyle too, thanks for pointing that out Outsider :D