You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AM2R-The-Horde-Multitroid/objects/oPBomb.object.gmx

132 lines
4.3 KiB

<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>sPBomb</spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>-110</depth>
<persistent>0</persistent>
<parentName>&lt;undefined&gt;</parentName>
<maskName>&lt;undefined&gt;</maskName>
<events>
<event eventtype="0" enumb="0">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>image_speed = 0.25;
alarm[0] = 60;
alarm[1] = 30;
sfx_play(sndPBombSet);
special = 0;
if(instance_exists(oClient)){
if(ds_list_size(oClient.roomListData) &gt; 0){
var size, type, alignment;
size = 1024;
type = buffer_grow;
alignment = 1;
pbombBuffer = buffer_create(size, type, alignment);
buffer_seek(pbombBuffer, buffer_seek_start, 0);
buffer_write(pbombBuffer, buffer_u8, 24);
buffer_write(pbombBuffer, buffer_u8, global.clientID);
buffer_write(pbombBuffer, buffer_s16, x);
buffer_write(pbombBuffer, buffer_s16, y);
var bufferSize = buffer_tell(pbombBuffer);
buffer_seek(pbombBuffer, buffer_seek_start, 0);
buffer_write(pbombBuffer, buffer_s32, bufferSize);
buffer_write(pbombBuffer, buffer_u8, 24);
buffer_write(pbombBuffer, buffer_u8, global.clientID);
buffer_write(pbombBuffer, buffer_s16, x);
buffer_write(pbombBuffer, buffer_s16, y);
var result = network_send_packet(oClient.socket, pbombBuffer, buffer_tell(pbombBuffer));
buffer_delete(pbombBuffer);
}
}
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="2" enumb="1">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>image_speed = 0.5;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="2" enumb="0">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>if (special == 0) {
instance_create(x, y, oPBombExpl);
expl = instance_create(x, y, oPBombExpl);
expl.image_angle = 90;
expl = instance_create(x, y, oPBombExpl);
expl.image_angle = 180;
expl = instance_create(x, y, oPBombExpl);
expl.image_angle = 270;
sfx_play(sndPBombExpl);
} else instance_create(x, y, oQueenFinalExplosion);
instance_destroy();
</string>
</argument>
</arguments>
</action>
</event>
</events>
<PhysicsObject>0</PhysicsObject>
<PhysicsObjectSensor>0</PhysicsObjectSensor>
<PhysicsObjectShape>0</PhysicsObjectShape>
<PhysicsObjectDensity>0.5</PhysicsObjectDensity>
<PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
<PhysicsObjectGroup>0</PhysicsObjectGroup>
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
<PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
<PhysicsObjectAwake>-1</PhysicsObjectAwake>
<PhysicsObjectKinematic>-1</PhysicsObjectKinematic>
<PhysicsShapePoints/>
</object>