by Cobalt » Wed Dec 24, 2014 8:17 pm
Ok seems like I posted the good news too early above.
I decided to move the Botframe() call out of startframe completely, and placed it in Playerprethink() , called for only botclients. This seems to make more sense and so far the bots behaviour is not changed except it seems perhaps hes thikning too often or moving a bit faster , not sure on that yet. But it did break my fix for the makevectors I described. What I did next was call makevectors in the corresponding firing animation frames for the machinegun, just before it goes to the actual firemachinegun() code, and this seems to have got it working almost perfectly, except at great diustances with multiple bots firing the wep, the traceline seems to be ending above the target about lalf the size up of the bot.
I am curious if I am right to assume makevectors can be safely called only once per frame, perhaps by looping through all the client slots then assigning seperate .vfwd,vrt, .vup floats to each one so that they have their own seperate values, rather than repetitive makevector calls like many mods do in multiple functions such as the weapons and other physics related stuff? If I understand the eng right, the beginning of the frame's values for this function should not change all through postthink until the frame ends and next one is called?