Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Set_Attack no longer seems to account for Bullseye offset
Re: Set_Attack no longer seems to account for Bullseye offset [message #487653 is a reply to message #487652] Mon, 19 May 2014 10:43 Go to previous messageGo to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
Calling Get_Bullsye_Position recursively isn't going to help you out much.... Razz

The bullseye has already been removed from all code, that function I quoted is where it used to be used, now it isn't. The only places that still refer to it are in the pathfinding and action code and it only uses it to make the soldier aim forward at eye level when running around without a target to shoot.


The original version of that code looked something like this;

Vector3 SoldierGameObj::Get_Bullseye_Position( void )
{
  if (Get_Vehicle() != NULL)
    return Get_Vehicle()->Get_Bullseye_Position();

  Vector3 pos;
  Get_Position(&pos);
  pos.Z += Is_Crouched() ? 0.5f : Get_Bullseye_Offset_Z();

  return pos;
}


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Mon, 19 May 2014 10:46]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Level Edit
Next Topic: nulling damage script?
Goto Forum:
  


Current Time: Mon May 13 20:53:07 MST 2024

Total time taken to generate the page: 0.01084 seconds