Jump to content

Requesting a Modding Teacher


charwo

Recommended Posts

I have been very busy working on a team mod putting roughly 10 hours a day in on it. I am sorry that i have not responded but i am sure you have noticed i have not been on the forums for the past couple weeks due to this fact. I have no problem giving help where i can but sending me messages calling me names is not a good way to get my help! I have spent a lot of time on this forum helping a lot of people and never once has one called me names for not being around to help.

 

With that being said there are a couple ways you can do this.

You can attach a script to the weapon that looks something like:


scn

ref Self

int SneekOnce
int StandOnce

Begin GameMode

set Self to GetSelf

If (Player.GetEquipped Self)
	If (Player.IsSneaking == 1)
		if (SneekOnce == 0)
			SetProjectile               			; put your beam effects here
			SetCritEffect                            ; put your crit effect here
			set SneekOnce to 1
			set StandOnce to 0
		endif

	else
		if (StandOnce == 0)
			SetProjectile               			; put your beam effects here
			SetCritEffect                            ; put your crit effect here
			set SneekOnce to 0
			set StandOnce to 1
		endif
	endif
endif

END

 

 

or you could make 2 weapons one with the effects of standing and one with the effect of sneaking and have them swap out depending on sneaking or not.

Would look something like:


scn

ref Self
int SneekOnce
int StandOnce

Begin GameMode

set Self to GetSelf

If (Player.GetEquipped Self)
	If (Player.IsSneaking == 1)
		if (SneekOnce == 0)
			Player.AddItem (weapon ID here) 1
	Player.RemoveItem (weapon ID here) 1
			Player.EquipItem (weaponID here) 0 1
			set SneekOnce to 1
			set StandOnce to 0
		endif

	else
		if (StandOnce == 0)

			Player.AddItem (weapon ID here) 1
	Player.RemoveItem (weapon ID here) 1
			Player.EquipItem (weaponID here) 0 1
			set SneekOnce to 0
			set StandOnce to 1
		endif
	endif
endif
END

 

 

Now with all that being said you have burnt your bridge with me by calling me names and you will NOT receive any more help from me. It is NOT a requirement for me to take time out of my busy day to help you and you should not act like it is a requirement for anyone to help you.

Edited by Capt Mitch
Link to comment
Share on other sites

  • Recently Browsing   0 members

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