Skip to content

Commit a43a256

Browse files
committed
Update TechnoClass
Add comment explaining GetGuardRange() parameter
1 parent b5f8a49 commit a43a256

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

TechnoClass.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,12 @@ class NOVTABLE TechnoClass : public RadioClass
235235
virtual bool vt_entry_310() const R0;
236236
virtual bool CanDeploySlashUnload() const R0;
237237
virtual int GetROF(int nWeapon) const R0;
238-
virtual int GetGuardRange(int dwUnk) const R0;
238+
// Parameter controls behaviour. Unlisted values behave same as 1.
239+
// -1 = returns -1 as range
240+
// 0 = uses GuardRange/weapon range as is
241+
// 1 = doubles range, if less than 0 increase to 0, if more than 4096 leptons cap it at that
242+
// 2 = doubles range, if less than 1792 leptons increase to 1792, if more than that return as is unless more than 4096 in which case cap at 4096.
243+
virtual int GetGuardRange(int control) const R0;
239244
virtual bool vt_entry_320() const R0;
240245
virtual bool IsRadarVisible(int* pOutDetection) const R0; // out value will be set to 1 if unit is cloaked and 2 if it is subterranean, otherwise it's unchanged
241246
virtual bool IsSensorVisibleToPlayer() const R0;

0 commit comments

Comments
 (0)