.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
RIGHT method of punchangle compensation!
Old
  (#1)
Immortal_BLG
Member
 
Status: Offline
Posts: 171
Join Date: Nov 2007
Location: Russian Federation
Big Grin RIGHT method of punchangle compensation! - 24-02-2011

For fake client:
Code:
botEdict->v.v_angle.x -= -botEdict->v.punchangle.x;
botEdict->v.v_angle.y -= botEdict->v.punchangle.y;
or:
Code:
botEdict->v.v_angle.x += botEdict->v.punchangle.x;
botEdict->v.v_angle.y += -botEdict->v.punchangle.y;

For real client:
Code:
clientEdict->v.v_angle.x -= -clientEdict->v.punchangle.x * 2.0f;
clientEdict->v.v_angle.y -= clientEdict->v.punchangle.y * 2.0f;
or:
Code:
clientEdict->v.v_angle.x += clientEdict->v.punchangle.x * 2.0f;
clientEdict->v.v_angle.y += -clientEdict->v.punchangle.y * 2.0f;
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com