Thread Rating:
  • 4 Vote(s) - 4.25 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[DEV] G2O Bot module
#41
No shit Sherlock...

Edit#
Co do pytania to obstawiam, ze setweaponmode nie przyjmuje wartości string, a jedynie enum czyli int?
Reply
#42
Yes, enum
Code:
enum WeaponMode
{
    NONE,
    FIST,
    DAG,
    ONEH,
    TWOH,
    BOW,
    CBOW,
    MAG
};
Nie będzie mnie do sierpnia, jestem w Szkocji i zarabiam na studia. Do zobaczenia.
Reply
#43
Updated a little bit.
[Image: CPCFNwD.png]
Reply
#44
I can't really test it right now. Just out of curiosity: What did you change exactly? Big Grin
Reply
#45
(25.05.2016, 20:28)HammelGammel Wrote: I can't really test it right now. Just out of curiosity: What did you change exactly? Big Grin
Only onFocusEnter/Exit bug.
[Image: CPCFNwD.png]
Reply
#46
Has anybody had any luck using this on dev8? I managed to get the ticks to work by setting a timer and calling the event manually, but it seems that secret_gimmeBotPos doesn't have any effect anymore. Any ideas? Except for the actual updating of the positions, it seems to work.
Reply
#47
Is this module working on DEV8 of G2O?

I have some problems here:

[Image: Wwp76eqYwwzVj.png]

i only changed the G20_Server.exe from dev6 to dev8
Reply
#48
Thats because in dev 8, callClient/ServerFunc was changed.
Reply
#49
I have a problem because OnTick event is not working.

Can i fix it? For now I used timer but can I use more optimal solution?

Code:
*addEvent("onTick", function()
{
    //Update bots
    for(local i = 0; i < LIMIT_BOTS; ++i)
        if(botStructure[i].isSpawned == true)
            botStructure[i].bot.update();
        
    
        
            
            
});*/
Reply
#50
(18.11.2016, 21:49)Mattwell Wrote: I have a problem because OnTick event is not working.

Can i fix it? For now I used timer but can I use more optimal solution?

Code:
*addEvent("onTick", function()
{
    //Update bots
    for(local i = 0; i < LIMIT_BOTS; ++i)
        if(botStructure[i].isSpawned == true)
            botStructure[i].bot.update();
        
    
        
            
            
});*/

onTick was cut from the latest versions of multiplayer
Discord: I'm not a spy...#9943.
GG: 60474243.

[Image: OsmithREV.gif]
[Image: 76561198181768479.png]
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)