View Single Post
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 06-13-2006 , 20:41  
Reply With Quote #10

New msec calculation
Code:
new Float:msec global_get(glb_frametime, msec) msec *= 1000.0
Place the last 2 lines in your StartFrame_Post function, nothing else is required
Credit: THE_STORM (ePODbot)

Display BOT in scoreboard
Code:
set_user_info(id, "*bot", "1")
Credit: strelomet (YaPB)

Also since I have a Bot API in development, that:
engfunc(EngFunc_RunPlayerMove,bot,botangles,botmove[0],botmove[1],0.0,botbuttons,0,msec)

I find the part highlighted in bold, does nothing

Instead of this:
Code:
new Float:CoreAngles[3] CoreAngles[0] = Radian2Degree(floatatan(DeltaOrigin[2] / Distance2D(DeltaOrigin[0], DeltaOrigin[1]),0)) CoreAngles[1] = Radian2Degree(floatatan(DeltaOrigin[1] / DeltaOrigin[0],0)) if(DeltaOrigin[0] >= 0.0) CoreAngles[1] += 180.0
You can do this:
Code:
engfunc(EngFunc_VecToAngles, DeltaOrigin, botangles)
More efficient IMHO
Orangutanz is offline