Forum > Serverside Modding

[TC] Removing dismount on combat?

(1/2) > >>

Kobiesan:
Hello. Does anyone know where within TrinityCore's source files that mounts are called upon and are responsible for dismounting people who are in combat if they are mounted? I need to make it so only a certain class doesn't get dismounted when they enter combat on a mount.

Amaroth:
No idea, but I would recommend looking not just into core src, but also into mount spell data. And doing this just for a certain class... bleh, quite likely you will have to make excluse class-only combat mounts. Maybe not, it just a guess.

Rochet2:
One way to try find out:
Start debugging.
Add break point to dismount function or whatever handles dismounting.
Mount up.
Get in combat.
See the callstack to that breakpoint when it is hit.

Not sure how you can see the callstack in GDB, but in VS it should be available.

Kobiesan:

--- Quote from: "Amaroth" ---No idea, but I would recommend looking not just into core src, but also into mount spell data. And doing this just for a certain class... bleh, quite likely you will have to make excluse class-only combat mounts. Maybe not, it just a guess.
--- End quote ---

I was in the middle of remaking every single mount in spell.dbc but it was taking a long time and I figured it would work better and be faster to just change the source of dismounts.

Mounts have a spellmechanic.dbc value of 21 (mounted). An AttributeEx3 of 0x20000000 (Ignore caster spellpower and done damage mods?  client doesn't apply spellmods for those spells) which I don't think affects dismounts. And an AttributeEx6 flag of 0x20000 (mount spell). I think that one might have something to do with it but I'm not sure where to look.


--- Quote from: "Rochet2" ---One way to try find out:
Start debugging.
Add break point to dismount function or whatever handles dismounting.
Mount up.
Get in combat.
See the callstack to that breakpoint when it is hit.

Not sure how you can see the callstack in GDB, but in VS it should be available.
--- End quote ---

I'm not sure how to do the debugging or break point.

Rochet2:

--- Quote from: "Kobiesan" ---
--- Quote from: "Rochet2" ---One way to try find out:
Start debugging.
Add break point to dismount function or whatever handles dismounting.
Mount up.
Get in combat.
See the callstack to that breakpoint when it is hit.

Not sure how you can see the callstack in GDB, but in VS it should be available.
--- End quote ---

I'm not sure how to do the debugging or break point.
--- End quote ---

Try following this:
viewtopic.php?p=48539#p48539

Navigation

[0] Message Index

[#] Next page

Go to full version