Jump to content

How to get securitron to attack anyone who attacks someone in the stri


LonerFO

Recommended Posts

I am hated by the NCR and I thought I would be safe in the strip, cause you know the securitrons are there and what not. But as I can see they can attack me without retaliation but if I attack them back then I aggro the bots. It's quite annoying. Anyone know of a fix here? Or a way to add it myself?

 

I found this script and I think it's the one I need to mod.

 

scn VStreetSecuritronScript
; - Jorge

Short HitOnce

Begin OnLoad

If VStreetCombat.Wanted != 1
Set HitOnce to 0
Endif

End

Begin OnReset

If VStreetCombat.Wanted != 1
Set HitOnce to 0
Endif

End

Begin OnStartCombat Player

Set VStreetCombat.Wanted to 1
Set VStreetCombat.SecuritronInCombat to 1
Set VStreetFluffNPC.NPCNormal to 0
Set VStreetCombat.NPCNormal to 0

End


Begin OnHit Player

If HitOnce == 1
Return
Else if HitOnce != 1

Set VStreetCombat.Wanted to 1
Set VStreetCombat.SecuritronInCombat to 1
Set VStreetFluffNPC.NPCNormal to 0
Set VStreetCombat.NPCNormal to 0
Set VStreetCombat.ForgetTime to GameDaysPassed + 3

If VStoryEventSecuritronsUpgraded != 1
	VStreetBot01REF.StartCombat Player
	VStreetBot02REF.StartCombat Player
	VStreetBot03REF.StartCombat Player
	VStreetBot04REF.StartCombat Player
	VStreetBot05REF.StartCombat Player
	VStreetBot06REF.StartCombat Player
	VStreetBot07REF.StartCombat Player
	VStreetBot08REF.StartCombat Player
	VStreetBot09REF.StartCombat Player
Else
	VStreetBot01MK2REF.StartCombat Player
	VStreetBot02MK2REF.StartCombat Player
	VStreetBot03MK2REF.StartCombat Player
	VStreetBot04MK2REF.StartCombat Player
	VStreetBot05MK2REF.StartCombat Player
Endif
	VLVBStationBot01REF.StartCombat Player
	VLVBStationBot02REF.StartCombat Player
	VLVBStationBot03REF.StartCombat Player

Set HitOnce to 1

Endif

If VStreetCombat.SecuritronHit == 1
Return
Elseif VStreetCombat.SecuritronHit != 1

Set VStreetCombat.Wanted to 1
Set VStreetCombat.SecuritronInCombat to 1
Set VStreetFluffNPC.NPCNormal to 0
Set VStreetCombat.NPCNormal to 0
Set VStreetCombat.ForgetTime to GameDaysPassed + 3

Set VStreetCombat.SecuritronHit to 1

Endif

End

Begin OnDeath

If IsKiller Player == 1
	If HitOnce == 1
		Return
	Else if HitOnce != 1
	
		Set VStreetCombat.Wanted to 1
		Set VStreetCombat.SecuritronInCombat to 1
		Set VStreetFluffNPC.NPCNormal to 0
		Set VStreetCombat.NPCNormal to 0
		Set VStreetCombat.ForgetTime to GameDaysPassed + 3
	
		If VStoryEventSecuritronsUpgraded != 1
			VStreetBot01REF.StartCombat Player
			VStreetBot02REF.StartCombat Player
			VStreetBot03REF.StartCombat Player
			VStreetBot04REF.StartCombat Player
			VStreetBot05REF.StartCombat Player
			VStreetBot06REF.StartCombat Player
			VStreetBot07REF.StartCombat Player
			VStreetBot08REF.StartCombat Player
			VStreetBot09REF.StartCombat Player
		Else
			VStreetBot01MK2REF.StartCombat Player
			VStreetBot02MK2REF.StartCombat Player
			VStreetBot03MK2REF.StartCombat Player
			VStreetBot04MK2REF.StartCombat Player
			VStreetBot05MK2REF.StartCombat Player
		Endif
		VLVBStationBot01REF.StartCombat Player
		VLVBStationBot02REF.StartCombat Player
		VLVBStationBot03REF.StartCombat Player

		Set HitOnce to 1

	Endif
Endif

If VStreetCombat.SecuritronHit == 1
	Return
Elseif VStreetCombat.SecuritronHit != 1

	Set VStreetCombat.Wanted to 1
	Set VStreetCombat.SecuritronInCombat to 1
	Set VStreetFluffNPC.NPCNormal to 0
	Set VStreetCombat.NPCNormal to 0
	Set VStreetCombat.ForgetTime to GameDaysPassed + 3

	Set VStreetCombat.SecuritronHit to 1

Endif

End

 

Isn't the onhit supposed to take care of this?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...