Thread Rating:
  • 4 Vote(s) - 4.25 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[DEV] G2O Bot module
#21
First post updated, please download latest version.
Reply
#22
I have a question about hitPlayer in CBot file. If i use this, my character should lose health? Or it is just for blood and sound of hit.
Currently my hero dosen't lose hp and i don't know it is a bug of feature Big Grin(tested on your gamemode). For me it's better like it is now, because i need write my own battle system, but i just need to know.
Reply
#23
I alredy report this problem.
Reply
#24
Lol, it was working in previous release of G2O. I tested it with Nubzior . Bimbol Come here Big Grin
Reply
#25
Eem I blocked unsynchronized damage Big Grin
Reply
#26
Next bug or feature:
If we set on bot 0 health, then he will still stand, and we can launch other animations (of course we can use callback to start animation of death);
Reply
#27
When going near a skeleton or orc, he will keep trying to unsheath his weapon (He'll keep repeating the unsheath-animation without actually ever unsheathing the weapon). Is this somehow intended? I really can't imagine it Big Grin

Also a few things that could be improved:

- I know it's a bug currently that hitPlayer doesn't add damage to the player, but it would be really useful if it could stay this way but there was an additional function to actually calculate the damage, so if you wanted you could write your own damage calculation but still have the fancy hit-effects. So you'd have hitPlayer() and hitPlayerEffect().

- I don't think there's something like a hitBot()-function, is there? It would be extremely useful to have this function but don't have it called automatically (If that's even doable) so you would manually call it from Bot.onDamage. However, some form of a hitBot-function would really be needed for bots fighting each other so you'd still have the same damage-calculation that is used for players and have the nice effects. And the same as above having two seperate functions for it would be very useful.

And spaces in the names, but according to the OP, that's a bug. Just wanted to point out though that it'd be nice to have this fixed Smile

Other than that and the animation-looping: Works great, thanks!

Or in other words:

[Image: b9a2557e40.jpg]
Reply
#28
I'd rather suggest that hitPlayer() receives an optional parameter for a calculation function reference.

In GMPA there are these SetTimer functions, where you specify the name of a timer function using a string parameter. This principle could also be applied here.
If the optional parameter is specified the selfmade calculation function will be called. If it isn't specified it falls back to Gothic's original calculation or doesn't calculate anything at all.
Reply
#29
hitPlayer should work in next release, read our posts.. Spaces in names maybe never will be fixed, but you can use ** char instead of space, ex. Young**wolf.
Reply
#30
(10.01.2016, 02:05)Seq Wrote: In GMPA there are these SetTimer functions, where you specify the name of a timer function using a string parameter. This principle could also be applied here.

Read wiki: http://gothic-online.com.pl/wiki/index.p...e=SetTimer
We using better solution with address to function. So timer, can be used even with class method Tongue
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [New G2O][Client-Side] GUI Patrix 1 3,343 02.01.2021, 05:22
Last Post: Patrix
  [G2O] SpeedBlock Marbar 16 11,049 13.10.2020, 15:32
Last Post: Sative
  [New G2O][Client-Side] LocalStorage Patrix 0 2,422 08.05.2020, 16:38
Last Post: Patrix
  [New G2O] Module example Patrix 4 7,683 17.05.2019, 01:30
Last Post: Patrix
  [New G2O][Client-Side] Music Module Nubzior 3 5,909 24.05.2018, 08:07
Last Post: Nubzior
  G2O - Client Side Bots(0.0.4) KimiorV 16 16,993 16.01.2017, 10:47
Last Post: KimiorV
  G2O Client side bots KimiorV 4 5,898 09.06.2016, 20:11
Last Post: KimiorV

Forum Jump:


Users browsing this thread: 1 Guest(s)