Jump to content

Is there any way to make staff style saber throwable?


Go to solution Solved by Droidy365,

Recommended Posts

Posted

Does anyone know how to get a staff style saber thrown? I've tried many ways in .sab file to achieve it, including defining throwable as 1 & singleBladeThrowable as 0, trying using a random combination of these and the definition of the three variables twoHanded, saberType, and noManualDeactivate. As far as i am concerned, the only way to make a staff throwable is to not using staff style, but I wanna make it happen while using staff style. By the way, defining noKicks as 1 have no effect in staff style.

image.jpeg.6448d5d738ac392acf6f691aeeb6c123.jpeg

For God Sake, I just want to throw it out...

Posted

If I recall, the weapon being SABER_STAFF also affects things like that. Try changing it to SABER_SINGLE; This won't affect the blade count.

Afterwards, add in the line:

saberStyle  staff

Note that saberStyle will lock it at the set style.

If you still want to be able to use medium style when one blade is off (requires noManualDeactivate to be set to 0/not set), instead put this:

saberStyleForbidden		fast
saberStyleForbidden		strong

saberStyleLearned		staff
singleBladeStyle		medium

I believe that should hopefully fix the issue.

Also set noKicks and throwable to 1 and leave twoHanded and singleBladeThrowable unset.

 

EDIT: I've just tested this out in Multiplayer, I think MP might have some sort of hard code against staff style throwing. I've also tried just setting a single saber to use saberStyle staff and it has the same issue.

Chen_tu likes this
Posted

Sadly, this can't be done. You would require a code edit. The game doesn't allow throwing staffs.

The only way would be to cheat your way out of it and defining the saber as

saberType SABER_SINGLE

numBlades 2

But some mods may see that cheat too.

Chen_tu likes this
  • Solution
Posted

So after more testing, I've determined that saberStyleLearned doesn't work for Staff style, for some reason. 

My best attempt is making a hybrid style, of sorts. A mix between fast and staff (fast, but with staff abilities and stance)

Spoiler



dual_throw
{
	name		"Throwable Staff"
	saberType	SABER_STAFF
	saberModel	"models/weapons2/saber_dual_1/saber_dual_1.glm"
	soundOn		"sound/weapons/saber/saberon.wav"
	soundLoop	"sound/weapons/saber/saberhum4.wav"
	soundOff	"sound/weapons/saber/saberoff.wav"
	saberColor	random
	numBlades	2
	saberLength	32

	saberStyle		fast

	readyAnim		BOTH_SABERSTAFF_STANCE

	kataMove		LS_STAFF_SOULCAL
	lungeAtkMove		LS_SPINATTACK
	jumpAtkFwdMove		LS_JUMPATTACK_STAFF_RIGHT
	jumpAtkBackMove		LS_A_BACKFLIP_ATK
	jumpAtkRightMove	LS_JUMPATTACK_STAFF_RIGHT
	jumpAtkLeftMove		LS_JUMPATTACK_STAFF_LEFT
	
	noManualDeactivate	1
	
	throwable		1
	brokenSaber1	brokenstaff
	brokenSaber2	brokenstaff
	twoHanded		1
}

I know it's probably not what you were hoping for, but I hope it works well enough.

Chen_tu likes this
Posted
3 hours ago, Droidy365 said:

So after more testing, I've determined that saberStyleLearned doesn't work for Staff style, for some reason. 

My best attempt is making a hybrid style, of sorts. A mix between fast and staff (fast, but with staff abilities and stance)

  Hide contents

 

 


dual_throw
{
	name		"Throwable Staff"
	saberType	SABER_STAFF
	saberModel	"models/weapons2/saber_dual_1/saber_dual_1.glm"
	soundOn		"sound/weapons/saber/saberon.wav"
	soundLoop	"sound/weapons/saber/saberhum4.wav"
	soundOff	"sound/weapons/saber/saberoff.wav"
	saberColor	random
	numBlades	2
	saberLength	32

	saberStyle		fast

	readyAnim		BOTH_SABERSTAFF_STANCE

	kataMove		LS_STAFF_SOULCAL
	lungeAtkMove		LS_SPINATTACK
	jumpAtkFwdMove		LS_JUMPATTACK_STAFF_RIGHT
	jumpAtkBackMove		LS_A_BACKFLIP_ATK
	jumpAtkRightMove	LS_JUMPATTACK_STAFF_RIGHT
	jumpAtkLeftMove		LS_JUMPATTACK_STAFF_LEFT
	
	noManualDeactivate	1
	
	throwable		1
	brokenSaber1	brokenstaff
	brokenSaber2	brokenstaff
	twoHanded		1
}

I know it's probably not what you were hoping for, but I hope it works well enough.

Thank u so much! It's a great idea. I never thought there was such a way like it! That's amazing, but I was wondering if there were any other move parameters like "kataMove" which could be adjusted. (I wanna change the entire fast stance into staff)

8 hours ago, Bart said:

Sadly, this can't be done. You would require a code edit. The game doesn't allow throwing staffs.

The only way would be to cheat your way out of it and defining the saber as

saberType SABER_SINGLE

numBlades 2

But some mods may see that cheat too.

Thank a lot! This 2 blades saber is trowable but it can't use the staff style. (Somehow I dont wanna cheat myself)

Posted
1 hour ago, Chen_tu said:

That's amazing, but I was wondering if there were any other move parameters like "kataMove" which could be adjusted. (I wanna change the entire fast stance into staff)

Technically you could change the animations for the fast style to be the staff style animations, but that would be a long, tedious process that probably wouldn't work that well, and it would affect every saber (essentially replacing the fast style as a whole)

Needless to say, that's not really an ideal solution. Other than that, not really sorry. As @Bart said, saber throwing would probably be possible to enable if you were to go with the coding route, but that's a whole other can of worms.

Chen_tu likes this
Posted
6 minutes ago, Droidy365 said:

Technically you could change the animations for the fast style to be the staff style animations, but that would be a long, tedious process that probably wouldn't work that well, and it would affect every saber (essentially replacing the fast style as a whole)

Needless to say, that's not really an ideal solution. Other than that, not really sorry. As @Bart said, saber throwing would probably be possible to enable if you were to go with the coding route, but that's a whole other can of worms.

So there is no more move parameter?

  • Bart changed the title to Is there any way to make staff style saber throwable?
Posted
4 hours ago, Droidy365 said:

Technically you could change the animations for the fast style to be the staff style animations, but that would be a long, tedious process that probably wouldn't work that well, and it would affect every saber (essentially replacing the fast style as a whole)

Needless to say, that's not really an ideal solution. Other than that, not really sorry. As @Bart said, saber throwing would probably be possible to enable if you were to go with the coding route, but that's a whole other can of worms.

3 hours ago, Chen_tu said:

So there is no more move parameter?

I have searched from the source code in OpenJK. It doesn't look like there are any more keys to change move. Sadly find that I can only solve my problem through coding. But thank you very much for your reply!!!

image.png.78e2a00763a934979cb034de1e7ec8f8.png

Droidy365 likes this

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...