Difference between revisions of "CFuncTank (CS)"
(CFuncTank offset list) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
| m_pController | | m_pController | ||
| style="text-align:center" | 34 | | style="text-align:center" | 34 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 38 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | CBasePlayer* | | style="text-align:center" | CBasePlayer* | ||
| Use get_pdata_cbase(). | | Use get_pdata_cbase(). | ||
Line 20: | Line 20: | ||
| m_flNextAttack | | m_flNextAttack | ||
| style="text-align:center" | 35 | | style="text-align:center" | 35 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 39 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| None. | | None. | ||
Line 27: | Line 27: | ||
| m_vecControllerUsePos | | m_vecControllerUsePos | ||
| style="text-align:center" | 36 | | style="text-align:center" | 36 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 40 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | Vector | | style="text-align:center" | Vector | ||
| None. | | None. | ||
Line 34: | Line 34: | ||
| m_yawCenter | | m_yawCenter | ||
| style="text-align:center" | 39 | | style="text-align:center" | 39 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 43 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| "Center" yaw. | | "Center" yaw. | ||
Line 41: | Line 41: | ||
| m_yawRate | | m_yawRate | ||
| style="text-align:center" | 40 | | style="text-align:center" | 40 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 44 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| Max turn rate to track targets. | | Max turn rate to track targets. | ||
Line 48: | Line 48: | ||
| m_yawRange | | m_yawRange | ||
| style="text-align:center" | 41 | | style="text-align:center" | 41 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 45 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| Range of turning motion (one-sided: 30 is +/- 30 degress from center) | | Range of turning motion (one-sided: 30 is +/- 30 degress from center) | ||
Line 56: | Line 56: | ||
| m_yawTolerance | | m_yawTolerance | ||
| style="text-align:center" | 42 | | style="text-align:center" | 42 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 46 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| Tolerance angle. | | Tolerance angle. | ||
Line 63: | Line 63: | ||
| m_pitchCenter | | m_pitchCenter | ||
| style="text-align:center" | 43 | | style="text-align:center" | 43 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 47 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| "Center" pitch. | | "Center" pitch. | ||
Line 70: | Line 70: | ||
| m_pitchRate | | m_pitchRate | ||
| style="text-align:center" | 44 | | style="text-align:center" | 44 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 48 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| Max turn rate on pitch. | | Max turn rate on pitch. | ||
Line 77: | Line 77: | ||
| m_pitchRange | | m_pitchRange | ||
| style="text-align:center" | 45 | | style="text-align:center" | 45 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 49 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| Range of pitch motion as above. | | Range of pitch motion as above. | ||
Line 84: | Line 84: | ||
| m_pitchTolerance | | m_pitchTolerance | ||
| style="text-align:center" | 46 | | style="text-align:center" | 46 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 50 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| Tolerance angle. | | Tolerance angle. | ||
Line 91: | Line 91: | ||
| m_fireLast | | m_fireLast | ||
| style="text-align:center" | 47 | | style="text-align:center" | 47 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 51 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| Last time I fired. | | Last time I fired. | ||
Line 98: | Line 98: | ||
| m_fireRate | | m_fireRate | ||
| style="text-align:center" | 48 | | style="text-align:center" | 48 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 52 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| How many rounds/second. | | How many rounds/second. | ||
Line 105: | Line 105: | ||
| m_lastSightTime | | m_lastSightTime | ||
| style="text-align:center" | 49 | | style="text-align:center" | 49 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 53 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| Last time I saw target. | | Last time I saw target. | ||
Line 112: | Line 112: | ||
| m_persist | | m_persist | ||
| style="text-align:center" | 50 | | style="text-align:center" | 50 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 54 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| LPersistence of firing (how long do I shoot when I can't see). | | LPersistence of firing (how long do I shoot when I can't see). | ||
Line 119: | Line 119: | ||
| m_minRange | | m_minRange | ||
| style="text-align:center" | 51 | | style="text-align:center" | 51 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 55 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| Minimum range to aim/track. | | Minimum range to aim/track. | ||
Line 126: | Line 126: | ||
| m_maxRange | | m_maxRange | ||
| style="text-align:center" | 52 | | style="text-align:center" | 52 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 56 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| Max range to aim/track. | | Max range to aim/track. | ||
Line 133: | Line 133: | ||
| m_barrelPos | | m_barrelPos | ||
| style="text-align:center" | 53 | | style="text-align:center" | 53 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 57 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | Vector | | style="text-align:center" | Vector | ||
| Length of the freakin barrel. | | Length of the freakin barrel. | ||
Line 140: | Line 140: | ||
| m_spriteScale | | m_spriteScale | ||
| style="text-align:center" | 56 | | style="text-align:center" | 56 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 60 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| Scale of any sprites we shoot. | | Scale of any sprites we shoot. | ||
Line 147: | Line 147: | ||
| m_iszSpriteSmoke | | m_iszSpriteSmoke | ||
| style="text-align:center" | 57 | | style="text-align:center" | 57 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 61 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | int | | style="text-align:center" | int | ||
| None. | | None. | ||
Line 154: | Line 154: | ||
| m_iszSpriteFlash | | m_iszSpriteFlash | ||
| style="text-align:center" | 58 | | style="text-align:center" | 58 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 62 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | int | | style="text-align:center" | int | ||
| None. | | None. | ||
Line 161: | Line 161: | ||
| m_bulletType | | m_bulletType | ||
| style="text-align:center" | 59 | | style="text-align:center" | 59 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 63 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | TANKBULLET | | style="text-align:center" | TANKBULLET | ||
| Bullet type. | | Bullet type. | ||
Line 168: | Line 168: | ||
| m_iBulletDamage | | m_iBulletDamage | ||
| style="text-align:center" | 60 | | style="text-align:center" | 60 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 64 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | int | | style="text-align:center" | int | ||
| 0 means use Bullet type's default damage. | | 0 means use Bullet type's default damage. | ||
Line 175: | Line 175: | ||
| m_sightOrigin | | m_sightOrigin | ||
| style="text-align:center" | 61 | | style="text-align:center" | 61 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 65 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | Vector | | style="text-align:center" | Vector | ||
| Last sight of target. | | Last sight of target. | ||
Line 182: | Line 182: | ||
| m_spread | | m_spread | ||
| style="text-align:center" | 64 | | style="text-align:center" | 64 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 68 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | int | | style="text-align:center" | int | ||
| Firing spread. | | Firing spread. | ||
Line 189: | Line 189: | ||
| m_iszMaster | | m_iszMaster | ||
| style="text-align:center" | 65 | | style="text-align:center" | 65 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 69 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | int | | style="text-align:center" | int | ||
| Master entity. (game_team_master or multisource) | | Master entity. (game_team_master or multisource) |
Latest revision as of 04:55, 29 August 2009
- CBaseEntity
- CFuncTank (func_tank)
W = Windows | L = Linux
Name | W. Offset | L. Offset | L. Diff | Type | Description |
---|---|---|---|---|---|
m_pController | 34 | 38 | +4 | CBasePlayer* | Use get_pdata_cbase(). |
m_flNextAttack | 35 | 39 | +4 | float | None. |
m_vecControllerUsePos | 36 | 40 | +4 | Vector | None. |
m_yawCenter | 39 | 43 | +4 | float | "Center" yaw. |
m_yawRate | 40 | 44 | +4 | float | Max turn rate to track targets. |
m_yawRange | 41 | 45 | +4 | float | Range of turning motion (one-sided: 30 is +/- 30 degress from center)
Zero is full rotation. |
m_yawTolerance | 42 | 46 | +4 | float | Tolerance angle. |
m_pitchCenter | 43 | 47 | +4 | float | "Center" pitch. |
m_pitchRate | 44 | 48 | +4 | float | Max turn rate on pitch. |
m_pitchRange | 45 | 49 | +4 | float | Range of pitch motion as above. |
m_pitchTolerance | 46 | 50 | +4 | float | Tolerance angle. |
m_fireLast | 47 | 51 | +4 | float | Last time I fired. |
m_fireRate | 48 | 52 | +4 | float | How many rounds/second. |
m_lastSightTime | 49 | 53 | +4 | float | Last time I saw target. |
m_persist | 50 | 54 | +4 | float | LPersistence of firing (how long do I shoot when I can't see). |
m_minRange | 51 | 55 | +4 | float | Minimum range to aim/track. |
m_maxRange | 52 | 56 | +4 | float | Max range to aim/track. |
m_barrelPos | 53 | 57 | +4 | Vector | Length of the freakin barrel. |
m_spriteScale | 56 | 60 | +4 | float | Scale of any sprites we shoot. |
m_iszSpriteSmoke | 57 | 61 | +4 | int | None. |
m_iszSpriteFlash | 58 | 62 | +4 | int | None. |
m_bulletType | 59 | 63 | +4 | TANKBULLET | Bullet type. |
m_iBulletDamage | 60 | 64 | +4 | int | 0 means use Bullet type's default damage. |
m_sightOrigin | 61 | 65 | +4 | Vector | Last sight of target. |
m_spread | 64 | 68 | +4 | int | Firing spread. |
m_iszMaster | 65 | 69 | +4 | int | Master entity. (game_team_master or multisource) |
Constants
// Spawn flags #define SF_TANK_ACTIVE 0x0001 #define SF_TANK_PLAYER 0x0002 #define SF_TANK_HUMANS 0x0004 #define SF_TANK_ALIENS 0x0008 #define SF_TANK_LINEOFSIGHT 0x0010 #define SF_TANK_CANCONTROL 0x0020 #define SF_TANK_SOUNDON 0x8000 enum TANKBULLET { TANK_BULLET_NONE = 0, TANK_BULLET_9MM = 1, TANK_BULLET_MP5 = 2, TANK_BULLET_12MM = 3, };