Changing Wield and Grip Choices

As of the Dark Ascension update, players can now go into the Character Hub ( Skill Station ) and select a preference for their combat styles. This includes whether they would like to use dual wield, or if they want to reverse their lightsaber.

 

PREFERENCES are only selectable if the player has it available to them. Meaning if they select one and it doesn't work, they can not access it for a variety of reasons. Here are a list of methods you can use to satisfy this.

 

Using SWEPs

If you would like to force a grip choice on a player from the SWEP, without them being able to change it, please use the following parameter. Do note you can also use these in default crafting options or personal sabers:

SWEP.UseGrip = "GRIP NAME HERE" //Change GRIP NAME HERE with the name of the GRIP as it appears in the preferences menu

This formatting has the bonus of being usable within skill trees OnSaberDeploy functions with SWEP changed to wep

Using Skill Trees [Warrior+]

If you would like to give a player access to a specific grip or dual wielding, you can use the following examples:

OnPlayerSpawn = function( ply )

       ply.WOS_AvailableGrips[ "GRIP NAME HERE" ] = true //Change GRIP NAME HERE with the name of the GRIP as it appears in the preferences menu

end

 

OnPlayerSpawn = function( ply )

       ply.CanUseDuals = true //Allows dual wielding

end

 

Using Config [Warrior+]

If you would like players to freely change between wielding types or grips without needing any pre-requisite skills, please go into the "wos/advswl/config/character/sv_config.lua" file and configure the parameter you see fit. Do note this will only effect PERSONAL LIGHTSABERS or SKILL TREE ENABLED LIGHTSABERS

wOS.ALCS.Config.Character.FreeGripChoice = true //Allows a player to change their grips freely
wOS.ALCS.Config.Character.FreeWieldChoice = true //Allows a player to use dual wield freely
  • 0 Пользователи нашли это полезным
Помог ли вам данный ответ?

Связанные статьи

Allow Moving While Attacking For A Lightsaber Weapon

How to enable moving while attacking on lightsaber weapons Go to your lightsaber in...

Setting Base Stats For Personal Lightsabers

How to configure base stats for personal lightsabers Navigate to...

Adding Forms To Lightsaber Weapons

How to configure Forms for specific Lightsabers Go to your lightsaber in lua/weapons Find the...

How To Disable Lunge

How to disable lightsaber swing lunge Navigate to...

Creating A Lightsaber Weapon

How to create a custom lightsaber weapon Navigate to lua/weapons Open any premade...