This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Visible Fist Weapons.  (Read 2257 times)

Tompoolk

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 15
    • View Profile
Visible Fist Weapons.
« on: September 22, 2015, 07:41:18 pm »
As the title suggests I was wondering if it was possible to have fist weapons not be sheathed at all, even when other items are. Any ideas?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: Visible Fist Weapons.
« Reply #1 on: September 22, 2015, 08:22:21 pm »
Sheath ID in item_template and item.dbc - put 1h sheath there.

Thats all you need. But I can't guarantee that it will look good.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: Visible Fist Weapons.
« Reply #2 on: September 23, 2015, 01:54:43 pm »
Quote from: "Amaroth"
Sheath ID in item_template and item.dbc - put 1h sheath there.

Thats all you need. But I can't guarantee that it will look good.
Additionally, this should give a rough overview
http://collab.kpsn.org/display/tc/item_ ... ate-sheath
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: Visible Fist Weapons.
« Reply #3 on: October 02, 2015, 01:52:07 pm »
Regarding the topic: is it possible to make the server recognize a value (e.g. 7) that would make the weapon always unsheathed?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: Visible Fist Weapons.
« Reply #4 on: October 03, 2015, 01:51:40 am »
Quote from: "Смердокрыл"
Regarding the topic: is it possible to make the server recognize a value (e.g. 7) that would make the weapon always unsheathed?
Good question for a change. I doubt so, expect if you tinker with the animdata.dbc a bit. However, you can not entirely disable sheathing. Maybe an addon that disables that ?

EDIT: It is handled serverwise if weapon is sheathed or unsheathed.
Maybe add a function into ::Update that updates sheath to SetSheath(SHEATH_STATE_MELEE) frequently ?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: Visible Fist Weapons.
« Reply #5 on: October 03, 2015, 10:20:09 am »
Oh, I also heard theres a parameter in every spell that states the position of weapons during the spell. Maybe, create an invisible aura, applied on equip, that would force the weapon to be always unsheathed?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

kojak488

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 351
    • View Profile
Re: Visible Fist Weapons.
« Reply #6 on: October 03, 2015, 04:31:31 pm »
Quote from: "Смердокрыл"
Oh, I also heard theres a parameter in every spell that states the position of weapons during the spell. Maybe, create an invisible aura, applied on equip, that would force the weapon to be always unsheathed?

Winner winner chicken dinner to an extent.  This is mostly how I'd accomplish it.  Though I'd use spell visuals rather than the position of weapons during a spell.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: Visible Fist Weapons.
« Reply #7 on: October 03, 2015, 07:56:04 pm »
Quote from: "kojak488"
Though I'd use spell visuals rather than the position of weapons during a spell.
But then you'd have to create a different spell for every fist weapon, wouldnt you?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: Visible Fist Weapons.
« Reply #8 on: October 04, 2015, 12:30:31 am »
Quote from: "Смердокрыл"
Quote from: "kojak488"
Though I'd use spell visuals rather than the position of weapons during a spell.
But then you'd have to create a different spell for every fist weapon, wouldnt you?
Doubt so, the spell just flags for 'unsheathed', not for the specific position iirc.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: Visible Fist Weapons.
« Reply #9 on: October 04, 2015, 09:30:59 am »
That flag determines whether sheathed or unsheathed animation is used for casting a spell. I also doubt it would work for some spam passive while running, standing and so on. It seems to me that core is the only option you have and I am not even sure if that can work without any more or less random glitches.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

kojak488

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 351
    • View Profile
Re: Visible Fist Weapons.
« Reply #10 on: October 04, 2015, 11:05:26 pm »
Quote from: "Amaroth"
That flag determines whether sheathed or unsheathed animation is used for casting a spell. I also doubt it would work for some spam passive while running, standing and so on. It seems to me that core is the only option you have and I am not even sure if that can work without any more or less random glitches.

I just told you that it can be done via spell visuals rather than sheathe flags/weapon positions.  Certainly there is no need for core changes.  Then again I also know the spell.dbc and its associations better than 99% of you.  So maybe YOU could only do it via core edits, but it's easily accomplished with relatively simple dbc additions.

Quote from: "Смердокрыл"
Quote from: "kojak488"
Though I'd use spell visuals rather than the position of weapons during a spell.
But then you'd have to create a different spell for every fist weapon, wouldnt you?

Different models, yes.  Not necessarily every different fist weapon.  But fuck, could script it and have EVERY weapon model done in 10 minutes (basically the time to write the script).  So that makes no difference.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: Visible Fist Weapons.
« Reply #11 on: October 05, 2015, 09:40:57 am »
That I doubt it will work flawlessly doesn't mean he should not try it nor that I have tryed it and it didn't work for me. So chill your arrogance.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz