Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » AGT
Re: AGT [message #472777 is a reply to message #472765] Sat, 04 August 2012 14:09 Go to previous messageGo to previous message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma:
General (1 Star)
The AGT fires more accurately. On 4.0 servers, the AGT doesn't fire anymore at players if the enemy isn't in their site. The old way, the AGT would shoot its machine guns at places like the C&C_Field tunnels even though the player isn't in sight of the AGT or has left the sight of the AGT.


This fix probably has something to do with it. If an enemy is in sight, it will fire at that exact moment.


void GDI_AGT_Gun::Enemy_Seen(GameObject* GunObj, GameObject* EnemyObj)
{
	// Check for an living target which is in range
	if (!IsValidEnemy(GunObj, EnemyObj))
		return;

	// If the current enemy is still a valid target, ignore this enemy
	if (IsValidEnemy(GunObj, Commands->Find_Object(EnemyID)))
		return;
	
	// Attack!
	ActionParamsStruct ActionParams;
	ActionParams.Set_Basic(this, 100, 1);
	ActionParams.Set_Attack(EnemyObj, 300, 0, true);
	ActionParams.AttackCheckBlocked = false;
	Commands->Action_Attack(GunObj, ActionParams);

	Commands->Start_Timer(GunObj, this, .1f, 0);
	
	EnemyID = Commands->Get_ID(EnemyObj);
}


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder

[Updated on: Sat, 04 August 2012 14:10]

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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Why not have the sbh stealth like this.
Next Topic: BRenBot
Goto Forum:
  


Current Time: Tue Aug 27 00:17:25 MST 2024

Total time taken to generate the page: 0.00887 seconds