Originally Posted by
qwerty
Alright, could you explain me why are you editing the specified entity's base + 276, 272, 264, 260 addresses? What represents these adresses, I guess the base + 280 is the height
but the others?
It basically created a collision 'box' around the entity like spawn point.
Based on the pseudocode in the 'spawn' function and the CoDExtended code.
You got two points that define the outer positions of the entity.
A = 260, 264, 268 e.g (-10, -10, 0) = x, y, z (i assume)
B = 272, 276, 280 e.g (10, 10, 10)
PHP Code:
*(_DWORD *)(a1 + 260) = playerMins;
*(_DWORD *)(a1 + 264) = dword_34BDD0;
*(_DWORD *)(a1 + 268) = dword_34BDD4;
*(_DWORD *)(a1 + 272) = playerMaxs;
*(_DWORD *)(a1 + 276) = dword_34BDC4;
*(_DWORD *)(a1 + 280) = dword_34BDC8;
cod2 1.3
PHP Code:
if ( *(_DWORD *)(a2 + 28) == 1 )
{
sub_810824E(a1 + 260, -1082130432, -1082130432, -1082130432);
sub_810824E(a1 + 272, 1065353216, 1065353216, 1065353216);
}
else
{
sub_810824E(a1 + 260, -1082130432, -1082130432, 0);
sub_810824E(a1 + 272, 1065353216, 1065353216, 1073741824);
}
It might be useful to read the values that are used in the spawn function (of your cod2 version).
Edit: or a other function that uses these offsets.