Aokromes

FACTION_TEMPLATE_FLAG_PVP

Nov 12th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. [12:11:28] <Aokromes> Shauren he is asking because https://pastebin.com/4bN6q219
  2. [12:13:04] <Shauren> i said structures
  3. [12:13:07] <Shauren> not flag values
  4. [12:14:08] <Shauren> also its this one doing the healability thing
  5. [12:14:13] <Shauren> UNIT_FIELD_BYTES_1: 8
  6. [12:14:15] <Aokromes> Riztazz https://i.imgur.com/MIKkrPg.jpg i cannot heal guy on left (i get heal cast on myself) i can heal guy on right xd
  7. [12:14:19] <Shauren> thats pvp is im not mistaken
  8. [12:14:56] <Aokromes> [11:52:56] <Malcrom1> The spell system in tc is preventing healing spells on that faction
  9. [12:14:56] <Aokromes> [11:53:22] <Malcrom1> If you change the npc faction you can cast on them
  10. [12:15:48] <Shauren> my mistake
  11. [12:15:50] <Shauren> its this one
  12. [12:15:50] <Shauren> UNIT_FIELD_BYTES_2: 257
  13. [12:16:04] <Shauren> it has UNIT_BYTE2_FLAG_PVP set so you can heal it
  14. [12:16:16] <Shauren> obviously depends on faction
  15. [12:22:56] <Aokromes> maybe name is incorrect?
  16. [12:25:42] [ Join ] joschiwald ([email protected])
  17. [12:25:42] [ MODOS ] TRiNiTY pone +h joschiwald
  18. [12:29:39] <vincent-michael> http://www.aviationtoday.com/2017/11/08/boeing-757-testing-shows-airplanes-vulnerable-hacking-dhs-says/
  19. [12:34:24] * Treeston ([email protected]) Quit (Read error: Connection reset by peer)
  20. [12:35:53] <Riztazz> https://twitter.com/realDonaldTrump/status/929511061954297857
  21. [12:37:50] * Mihapro ([email protected]) Quit (Ping timeout: 240 seconds)
  22. [12:38:32] <WardenX> TrinityCore/TrinityCore (9b7c73a * 3.3.5): jackpoz committed Core/Misc: Fix static analysis issues https://git.io/vFw9a
  23. [12:41:21] <Aokromes> UNIT_FIELD_BYTES_2 122 creature_addon.bytes2
  24. [12:41:23] <Aokromes> soo
  25. [12:41:39] <Aokromes> it's add that to c_a / c_t_a instead we are doing to unit_field
  26. [12:41:53] <Killerwife> Aokromes
  27. [12:41:54] <Killerwife> https://github.com/cmangos/mangos-wotlk/commit/d3aa99fa9bf88c53b319154ee6c402ce9bf685ed
  28. [12:42:09] <Shauren> nope
  29. [12:42:19] <Shauren> c_a && c_t_a ignore that part of bytes
  30. [12:42:32] <Aokromes> why?
  31. [12:43:22] <Shauren> because its controlled by faction
  32. [12:43:31] <Shauren> currently with this line of code
  33. [12:43:31] <Shauren> SetPvP((factionTemplate->factionFlags & FACTION_TEMPLATE_FLAG_PVP) != 0);
  34. [12:45:51] <Killerwife> clientside its controlled by a plethora of factors, PVP flag is just one thing out of those, propably server/client logic desync + bad data?
  35. [12:46:03] <Shauren> eh
  36. [12:47:05] <Shauren> whats up with you mangos guys being afraid of creating new classes or files (having functions of one class in multiple files is really horrible, just as having giant classes (tc suffers from this as well))
  37. [12:47:23] <Killerwife> the commit i linked made new file
  38. [12:47:28] <Killerwife> kinda bad example?
  39. [ WHOIS ] Killerwife
  40. [ Killerwife ] [email protected] : Killerwife
  41. [ Killerwife ] #trinity @#cmangos #vengeancewow.testers @#voa_testers
  42. [ Killerwife ] *.rizon.net Where are you?
  43. [12:48:02] <Aokromes> Killerwife that commit allows to heal those npcs without having to hack flags?
  44. [12:48:20] <Killerwife> yes but a core wide restructuring of calls was needed
  45. [12:48:23] <Killerwife> I spent 3 months on it
  46. [12:48:34] <Killerwife> I can now use sniff 1:1 flags and everything works like on retail
  47. [12:48:46] <Aokromes> hmm
  48. [12:48:53] <Aokromes> it works also with scholazar basin mobs?
  49. [12:49:07] <Killerwife> that much I can't tell, I am mostly based on tbc
  50. [12:49:35] <Shauren> Aokromes: ill remind you that we used to have client reversed functions too and "multiple people" broke it with extra checks
  51. [12:49:53] <Killerwife> yes but WB strictly didnt alter the clientside ones
  52. [12:50:18] <Shauren> Unit::_IsValidAssistTarget was supposed to mirror CGUnit_C::CanAssist
  53. [12:50:59] <Killerwife> yeah but you spliced it with spell logic
  54. [12:51:09] <Killerwife> client CanAssist doesnt have spell logic
Advertisement
Add Comment
Please, Sign In to add comment