if (Index >= AXO_CONCRETE_SLAB && Index <= AXO_CONCRETE_RAMP_WALL)
{
// Concrete objects - always floating regardless of 0x80 bit
// Flags byte contains various attributes depending on the object
// Each concrete object has three attributes
Attributes:
name bits values
Width : 0x03 >> 0 : 2, 4, 8, 16
Length : 0x0c >> 2 : 2, 4, 8, 16
Size X : 0x03 >> 0 : 0.25, 0.5, 0.75, 1
Size Y : 0x0c >> 2 : 0.25, 0.5, 0.75, 1
Height : 0xf0 >> 4 : 0.25 to 4 in steps of 0.25
Pitch : 0xf0 >> 4 : 0 to 90 in steps of 6 degrees
Colour : 0x03 >> 0 : grey / red / blue / yellow
Attributes used by each object:
AXO_CONCRETE_SLAB : Width / Length / Pitch
AXO_CONCRETE_RAMP : Width / Length / Height
AXO_CONCRETE_WALL : Colour / Length / Height
AXO_CONCRETE_PILLAR : Size X / Size Y / Height
AXO_CONCRETE_SLAB_WALL : Colour / Length / Pitch
AXO_CONCRETE_RAMP_WALL : Colour / Length / Height
}
<?php
private function concrete_parse($index, $bits)
{
switch($index)
{
case AXO_CONCRETE_SLAB:
$name = 'Width/Length/Pitch';
break;
case AXO_CONCRETE_RAMP:
$name = 'Width/Length/Height';
break;
case AXO_CONCRETE_WALL:
$name = 'Color/Length/Height';
break;
case AXO_CONCRETE_PILLAR:
$name = 'SizeX/SizeY/Pitch';
break;
case AXO_CONCRETE_SLAB_WALL:
$name = 'Colour/Length/Pitch';
break;
case AXO_CONCRETE_RAMP_WALL:
$name = 'Colour/Length/Height';
break;
default:
// No idea why we would get here.
break;
}
foreach (explode('/', $name) as $name)
$packet[$name] = self::concret_bits($name, $bits);
}
private function concrete_bits($name, $bits)
{
switch ($name)
{ // Some of these will not return the correct value yet.
case 'Width':
return $bits & 0x03 >> 0; # 2, 4, 8, 16
case 'Length':
return $bits & 0x0c >> 2; # 2, 4, 8, 16
case 'SizeX':
return $bits & 0x03 >> 0; # 0.25, 0.5, 0.75, 1
case 'SizeY':
return $bits & 0x0c >> 2; # 0.25, 0.5, 0.75, 1
case 'Height':
return $bits & 0xf0 >> 4; # 0.25 to 4 in steps of 0.25
case 'Pitch':
return $bits & 0xf0 >> 4; # 0 to 90 in steps of 6 degrees
case 'Colour':
return $bits & 0x03 >> 0; # grey / red / blue / yellow
}
}
?>
if (Index >= AXO_CONCRETE_SLAB && Index <= AXO_CONCRETE_RAMP_WALL)
{
// Concrete objects - always floating regardless of 0x80 bit
// Flags byte contains various attributes depending on the object
// Each concrete object has three attributes
Attributes:
name bits values
Width : 0x03 >> 0 : 2, 4, 8, 16
Length : 0x0c >> 2 : 2, 4, 8, 16
Size X : 0x03 >> 0 : 0.25, 0.5, 0.75, 1
Size Y : 0x0c >> 2 : 0.25, 0.5, 0.75, 1
Height : 0xf0 >> 4 : 0.25 to 4 in steps of 0.25
Pitch : 0xf0 >> 4 : 0 to 90 in steps of 6 degrees
Colour : 0x03 >> 0 : grey / red / blue / yellow
Attributes used by each object:
AXO_CONCRETE_SLAB : Width / Length / Pitch
AXO_CONCRETE_RAMP : Width / Length / Height
AXO_CONCRETE_WALL : Colour / Length / Height
AXO_CONCRETE_PILLAR : Size X / Size Y / Height
AXO_CONCRETE_SLAB_WALL : Colour / Length / Pitch
AXO_CONCRETE_RAMP_WALL : Colour / Length / Height
}
if (Index >= AXO_CONCRETE_SLAB && Index <= AXO_CONCRETE_RAMP_WALL)
{
// Concrete objects - always floating regardless of 0x80 bit
// Flags byte contains various attributes depending on the object
// Each concrete object has three attributes
Attributes:
name bits values
Width : 0x03 >> 0 : 2, 4, 8, 16
Length : 0x0c >> 2 : 2, 4, 8, 16
Size X : 0x03 >> 0 : 0.25, 0.5, 0.75, 1
Size Y : 0x0c >> 2 : 0.25, 0.5, 0.75, 1
Height : 0xf0 >> 4 : 0.25 to 4 in steps of 0.25
Pitch : 0xf0 >> 4 : 0 to 90 in steps of 6 degrees
Colour : 0x03 >> 0 : grey / red / blue / yellow
Attributes used by each object:
AXO_CONCRETE_SLAB : Width / Length / Pitch
AXO_CONCRETE_RAMP : Width / Length / Height
AXO_CONCRETE_WALL : Colour / Length / Height
AXO_CONCRETE_PILLAR : Size X / Size Y / Height
AXO_CONCRETE_SLAB_WALL : Colour / Length / Pitch
AXO_CONCRETE_RAMP_WALL : Colour / Length / Height
}
<?php
Loaded cvars.ini
Loaded hosts.ini
Invalid socket type set for 127.0.0.1:29999
Host server will be excluded.
Loaded http.ini
Loaded telnet.ini
Loaded admins.ini
Loaded plugins.ini
Loading plugins
Loading plugin: admin
Loading plugin: debugger
Loading plugin: gmeter
Loading plugin: iTunes
Notice: Undefined index: in C:\xampp\cruise\modules\prism_hosts.php on line 589
Fatal error: Call to a member function isRelay() on null in C:\xampp\cruise\modules\prism_hosts.php on line 591
?>