You are viewing our Forum Archives. To view or take place in current topics click here.
A little game for you guys
Posted:

A little game for you guys Posted:

wowmanshark
  • TTG Master
Status: Offline
Joined: Mar 30, 201113Year Member
Posts: 898
Reputation Power: 41
Status: Offline
Joined: Mar 30, 201113Year Member
Posts: 898
Reputation Power: 41
32 rep if you know what this is/what its for.

class C_BaseCombatWeapon
{
public:
   float GetRealSpread(){
      __asm
      {
         mov ecx, this;
         mov eax, ecx;
         mov eax, [eax];
         add eax, 0x5C0;
         call [eax];
      }     
   }
   float GetRealCone(float m_fGameTime)
   {
      __asm
      {
         fld m_fGameTime;
         mov ecx, this;
         mov eax, ecx;
         mov eax, [eax];
         add eax, 0x5C4;
         call [eax];
      }   
   }
};

#2. Posted:
PHP_Pro
  • Ladder Climber
Status: Offline
Joined: Oct 12, 201112Year Member
Posts: 349
Reputation Power: 20
Status: Offline
Joined: Oct 12, 201112Year Member
Posts: 349
Reputation Power: 20
That looks like x86 assembly to me.
[ Register or Signin to view external links. ]
#3. Posted:
Imp
  • Blind Luck
Status: Offline
Joined: Jan 01, 201113Year Member
Posts: 1,957
Reputation Power: 401
Status: Offline
Joined: Jan 01, 201113Year Member
Posts: 1,957
Reputation Power: 401
PHP_Pro is close.

Its in-line assembly.

You can put this code inside your C Code, the prefix __asm states the start of the in-line assembly
#4. Posted:
wowmanshark
  • TTG Master
Status: Offline
Joined: Mar 30, 201113Year Member
Posts: 898
Reputation Power: 41
Status: Offline
Joined: Mar 30, 201113Year Member
Posts: 898
Reputation Power: 41
PHP_Pro wrote That looks like x86 assembly to me.
[ Register or Signin to view external links. ]


Close enough, although not the answer I was looking for.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.