stock3rz Posted November 4, 2012 Share Posted November 4, 2012 I am editing ZuluFoxtrot's zombie mod for my own personal enjoyment. The mod is here: http://newvegas.nexusmods.com/mods/37067 It is just a general GECK question and does not actually require any knowledge of the mod answer. Ok I want to make it so when you inflict damage on a zombie it in anywhere other than the head it does 0.00 damage. And damage to the head just does default damage. How does one edit this? Does it require scripting or is there just an option to do it.Thanks Link to comment Share on other sites More sharing options...
CaptMitch Posted November 4, 2012 Share Posted November 4, 2012 (edited) I am editing ZuluFoxtrot's zombie mod for my own personal enjoyment. The mod is here: http://newvegas.nexu....com/mods/37067 It is just a general GECK question and does not actually require any knowledge of the mod answer. Ok I want to make it so when you inflict damage on a zombie it in anywhere other than the head it does 0.00 damage. And damage to the head just does default damage. How does one edit this? Does it require scripting or is there just an option to do it.Thanks I Wish i could help more with this. To my knowledge you cannot set damage to each body part separately. I know you CAN make a script to get the Total health and body part health store it in a variable and have it restore it whenever it gets hit unless it was hit in the head. The script would something like this. scn whateverZombieHealth int DoOnce int ZombieHealth int ZombieHealthCurrent int ZombieHeadHealth int ZombieHeadHealthCurrent int ZombieTorsoHealth int ZombieTorsoHealthCurrent int ZombieLArmHealth int ZombieLArmHealthCurrent int ZombieRArmHealth int ZombieRArmHealthCurrent int ZombieLLegHealth int ZombieLLegHealthCurrent int ZombieRLegHealth int ZombieRLegHealthCurrent Begin GameMode If (DoOnce == 0) Set ZombieHealth to ZombieREF.GetAv Health Set ZombieHeadHealth to ZombieREF.GetAV PerceptionCondition Set ZombieTorsoHealth to ZombieREF.GetAv EnduranceCondition Set ZombieLArmHealth to ZombieREF.GetAv LeftAttackCondition Set ZombieRArmHealth to ZombieREF.GetAv RightAttackCondition Set ZombieLLegHealth to ZombieREF.GetAv LeftMobilityCondition Set ZombieRLegHealth to ZombieREF.GetAv RightMobilityCondition set DoOnce to 1 endif Set ZombieHealthCurrent to ZombieREF.GetAV Health Set ZombieHeadHealthCurrent to ZombieREF.GetAV PerceptionCondition Set ZombieTorsoHealthCurrent to ZombieREF.GetAv EnduranceCondition Set ZombieLArmHealthCurrent to ZombieREF.GetAv LeftAttackCondition Set ZombieRArmHealthCurrent to ZombieREF.GetAv RightAttackCondition Set ZombieLLegHealthCurrent to ZombieREF.GetAv LeftMobilityCondition Set ZombieRLegHealthCurrent to ZombieREF.GetAv RightMobilityCondition If (ZombieHeadHealthCurrent < ZombieHeadHealth) Set ZombieHeadHealth to ZombieHeadHealthCurrent Set ZombieHealth to ZombieHealthCurrent endif if (ZombieTorsoHealthCurrent < ZombieTorsoHealth) ZombieREF.setAV EnduranceCondition ZombieTorsoHealth ZombieREF.setAV Health to ZombieHealth endif if (ZombieLArmHealthCurrent < ZombieLArmHealth) ZombieREF.setAV LeftAttackCondition ZombieLArmHealth ZombieREF.setAV Health ZombieHealth endif if (ZombieRArmHealthCurrent < ZombieRArmHealth) ZombieREF.SetAV RightAttackCondition ZombieRArmHealth ZombieREF.setAV Health ZombieHealth endif if (ZombieLLegHealthCurrent < ZombieLLegHealth) ZombieREF.SetAV LeftMobilityCondition ZombieLLegHealth ZombieREF.setAV Health ZombieHealth endif if (ZombieLLegHealthCurrent < ZombieRLegHealth) ZombieREF.SetAV LeftMobilityCondition ZombieRLegHealth ZombieREF.setAV Health ZombieHealth endif END This would reset health and limb status unless it was hit in the head.Hope this helps you. Edited November 4, 2012 by Capt Mitch Link to comment Share on other sites More sharing options...
stock3rz Posted November 4, 2012 Author Share Posted November 4, 2012 I am editing ZuluFoxtrot's zombie mod for my own personal enjoyment. The mod is here: http://newvegas.nexu....com/mods/37067 It is just a general GECK question and does not actually require any knowledge of the mod answer. Ok I want to make it so when you inflict damage on a zombie it in anywhere other than the head it does 0.00 damage. And damage to the head just does default damage. How does one edit this? Does it require scripting or is there just an option to do it.Thanks I Wish i could help more with this. To my knowledge you cannot set damage to each body part separately. I know you CAN make a script to get the Total health and body part health store it in a variable and have it restore it whenever it gets hit unless it was hit in the head. The script would something like this. scn whateverZombieHealth int DoOnce int ZombieHealth int ZombieHealthCurrent int ZombieHeadHealth int ZombieHeadHealthCurrent int ZombieTorsoHealth int ZombieTorsoHealthCurrent int ZombieLArmHealth int ZombieLArmHealthCurrent int ZombieRArmHealth int ZombieRArmHealthCurrent int ZombieLLegHealth int ZombieLLegHealthCurrent int ZombieRLegHealth int ZombieRLegHealthCurrent Begin GameMode If (DoOnce == 0) Set ZombieHealth to ZombieREF.GetAv Health Set ZombieHeadHealth to ZombieREF.GetAV PerceptionCondition Set ZombieTorsoHealth to ZombieREF.GetAv EnduranceCondition Set ZombieLArmHealth to ZombieREF.GetAv LeftAttackCondition Set ZombieRArmHealth to ZombieREF.GetAv RightAttackCondition Set ZombieLLegHealth to ZombieREF.GetAv LeftMobilityCondition Set ZombieRLegHealth to ZombieREF.GetAv RightMobilityCondition set DoOnce to 1 endif Set ZombieHealthCurrent to ZombieREF.GetAV Health Set ZombieHeadHealthCurrent to ZombieREF.GetAV PerceptionCondition Set ZombieTorsoHealthCurrent to ZombieREF.GetAv EnduranceCondition Set ZombieLArmHealthCurrent to ZombieREF.GetAv LeftAttackCondition Set ZombieRArmHealthCurrent to ZombieREF.GetAv RightAttackCondition Set ZombieLLegHealthCurrent to ZombieREF.GetAv LeftMobilityCondition Set ZombieRLegHealthCurrent to ZombieREF.GetAv RightMobilityCondition If (ZombieHeadHealthCurrent < ZombieHeadHealth) Set ZombieHeadHealth to ZombieHeadHealthCurrent Set ZombieHealth to ZombieHealthCurrent endif if (ZombieTorsoHealthCurrent < ZombieTorsoHealth) ZombieREF.setAV EnduranceCondition ZombieTorsoHealth ZombieREF.setAV Health to ZombieHealth endif if (ZombieLArmHealthCurrent < ZombieLArmHealth) ZombieREF.setAV LeftAttackCondition ZombieLArmHealth ZombieREF.setAV Health ZombieHealth endif if (ZombieRArmHealthCurrent < ZombieRArmHealth) ZombieREF.SetAV RightAttackCondition ZombieRArmHealth ZombieREF.setAV Health ZombieHealth endif if (ZombieLLegHealthCurrent < ZombieLLegHealth) ZombieREF.SetAV LeftMobilityCondition ZombieLLegHealth ZombieREF.setAV Health ZombieHealth endif if (ZombieLLegHealthCurrent < ZombieRLegHealth) ZombieREF.SetAV LeftMobilityCondition ZombieRLegHealth ZombieREF.setAV Health ZombieHealth endif END This would reset health and limb status unless it was hit in the head.Hope this helps you.Thanks you must have gone to some trouble to get that, I am truely greatful I just wish I new what to do with it. But really thanks I never expected someone to have been that helpful. I am however completely clueless when it comes to scripting so what to do with this script I do not know. If maybe you could help me in some way that would be great. Maybe how to create the SCRIPT value thing and what to change the 'zombie' prefix to (like the editor id or whatever). Thanks again Link to comment Share on other sites More sharing options...
CaptMitch Posted November 4, 2012 Share Posted November 4, 2012 I did not find that script i wrote it to respond to your post. If you attach this script to the Zombie and change the ZombieREF to the ref of the Zombie it should be ready to go. Link to comment Share on other sites More sharing options...
CaptMitch Posted November 4, 2012 Share Posted November 4, 2012 (edited) scn whateverZombieHealth ref ZombieREF int DoOnce int ZombieHealth int ZombieHealthCurrent int ZombieHeadHealth int ZombieHeadHealthCurrent int ZombieTorsoHealth int ZombieTorsoHealthCurrent int ZombieLArmHealth int ZombieLArmHealthCurrent int ZombieRArmHealth int ZombieRArmHealthCurrent int ZombieLLegHealth int ZombieLLegHealthCurrent int ZombieRLegHealth int ZombieRLegHealthCurrent Begin GameMode Set ZombieREF to GetContainer If (DoOnce == 0) Set ZombieHealth to ZombieREF.GetAv Health Set ZombieHeadHealth to ZombieREF.GetAV PerceptionCondition Set ZombieTorsoHealth to ZombieREF.GetAv EnduranceCondition Set ZombieLArmHealth to ZombieREF.GetAv LeftAttackCondition Set ZombieRArmHealth to ZombieREF.GetAv RightAttackCondition Set ZombieLLegHealth to ZombieREF.GetAv LeftMobilityCondition Set ZombieRLegHealth to ZombieREF.GetAv RightMobilityCondition set DoOnce to 1 endif END Begin OnHit Set ZombieHealthCurrent to ZombieREF.GetAV Health Set ZombieHeadHealthCurrent to ZombieREF.GetAV PerceptionCondition Set ZombieTorsoHealthCurrent to ZombieREF.GetAv EnduranceCondition Set ZombieLArmHealthCurrent to ZombieREF.GetAv LeftAttackCondition Set ZombieRArmHealthCurrent to ZombieREF.GetAv RightAttackCondition Set ZombieLLegHealthCurrent to ZombieREF.GetAv LeftMobilityCondition Set ZombieRLegHealthCurrent to ZombieREF.GetAv RightMobilityCondition If (ZombieHeadHealthCurrent < ZombieHeadHealth) Set ZombieHeadHealth to ZombieHeadHealthCurrent Set ZombieHealth to ZombieHealthCurrent endif if (ZombieTorsoHealthCurrent < ZombieTorsoHealth) ZombieREF.setAV EnduranceCondition ZombieTorsoHealth ZombieREF.setAV Health to ZombieHealth endif if (ZombieLArmHealthCurrent < ZombieLArmHealth) ZombieREF.setAV LeftAttackCondition ZombieLArmHealth ZombieREF.setAV Health ZombieHealth endif if (ZombieRArmHealthCurrent < ZombieRArmHealth) ZombieREF.SetAV RightAttackCondition ZombieRArmHealth ZombieREF.setAV Health ZombieHealth endif if (ZombieLLegHealthCurrent < ZombieLLegHealth) ZombieREF.SetAV LeftMobilityCondition ZombieLLegHealth ZombieREF.setAV Health ZombieHealth endif if (ZombieRLegHealthCurrent < ZombieRLegHealth) ZombieREF.SetAV RightMobilityCondition ZombieRLegHealth ZombieREF.setAV Health ZombieHealth endif END Just change the name at scn BLAH BLAH BLAH and attach it to the zombie NPC Edited November 4, 2012 by Capt Mitch Link to comment Share on other sites More sharing options...
Recommended Posts