06.01.2016, 12:19
First post updated, please download latest version.
[DEV] G2O Bot module
|
06.01.2016, 12:19
First post updated, please download latest version.
06.01.2016, 13:34
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 ![]()
06.01.2016, 13:58
I alredy report this problem.
Lol, it was working in previous release of G2O. I tested it with Nubzior . Bimbol Come here
![]()
06.01.2016, 14:29
Eem I blocked unsynchronized damage
![]()
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);
09.01.2016, 21:05
(This post was last modified: 09.01.2016, 21:43 by HammelGammel.)
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
![]() 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 ![]() Other than that and the animation-looping: Works great, thanks! Or in other words: ![]()
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.
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.
10.01.2016, 02:58
(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 ![]() |
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
[New G2O][Client-Side] GUI | 1 | 3,343 |
02.01.2021, 05:22 Last Post: |
||
[G2O] SpeedBlock | 16 | 11,049 |
13.10.2020, 15:32 Last Post: |
||
[New G2O][Client-Side] LocalStorage | 0 | 2,422 |
08.05.2020, 16:38 Last Post: |
||
[New G2O] Module example | 4 | 7,683 |
17.05.2019, 01:30 Last Post: |
||
[New G2O][Client-Side] Music Module | 3 | 5,909 |
24.05.2018, 08:07 Last Post: |
||
G2O - Client Side Bots(0.0.4) | 16 | 16,993 |
16.01.2017, 10:47 Last Post: |
||
G2O Client side bots | 4 | 5,898 |
09.06.2016, 20:11 Last Post: |