MantisBT - Soldat
View Issue Details
0000076SoldatGraphicspublic2011-10-01 16:452014-01-09 17:40
TheOne 
Fryer 
urgentmajoralways
closedfixed 
1.6.0 
1.6.1 
0000076: Flames and Statgun bullet type
Scriptcreated flames and statgun bullets are invisible, flames only appear at the nearest player. Appeared in all versions since 1.5.
Use this code for testing:

function OnPlayerCommand(ID: Byte; Text: string): boolean;
var X, Y: Single;
    Owner: Byte;
begin
    if Text = '/flame' then
    begin
        GetPlayerXY(ID, X, Y);
        Owner := ID;
        CreateBullet(X-5,Y-35,0,0,0,5,owner);
        CreateBullet(X-5,Y-18,0,0,0,5,owner);
        CreateBullet(X-5,Y-1,0,0,0,5,owner);
        CreateBullet(X-5,Y+16,0,0,0,5,owner);
        CreateBullet(X-5,Y+33,0,0,0,5,owner);
        CreateBullet(X-5,Y+50,0,0,0,5,owner);
        CreateBullet(X-5,Y+67,0,0,0,5,owner);
        CreateBullet(X+5,Y-34,0,0,0,5,owner);
        CreateBullet(X+5,Y-17,0,0,0,5,owner);
        CreateBullet(X+5,Y,0,0,0,5,owner);
        CreateBullet(X+5,Y+17,0,0,0,5,owner);
        CreateBullet(X+5,Y+34,0,0,0,5,owner);
        CreateBullet(X+5,Y+51,0,0,0,5,owner);
        CreateBullet(X+5,Y+68,0,0,0,5,owner);
        //Horizontal line
        CreateBullet(X+34,Y-3,0,0,0,5,owner);
        CreateBullet(X+17,Y-3,0,0,0,5,owner);
        CreateBullet(X-34,Y-3,0,0,0,5,owner);
        CreateBullet(X-17,Y-3,0,0,0,5,owner);
        CreateBullet(X+34,Y+7,0,0,0,5,owner);
        CreateBullet(X+17,Y+7,0,0,0,5,owner);
        CreateBullet(X-34,Y+7,0,0,0,5,owner);
        CreateBullet(X-17,Y+7,0,0,0,5,owner);
    end
    else if Text = '/statgun' then
    begin
        GetPlayerXY(ID, X, Y);
        Owner := ID;
        CreateBullet(X - 30, Y - 30, -10, -10, 0, 14, ID);
        CreateBullet(X + 30, Y - 30, 10, -10, 0, 14, ID);
        CreateBullet(X - 30, Y + 30, -10, 10, 0, 14, ID);
        CreateBullet(X + 30, Y + 30, 10, 10, 0, 14, ID);
    end;
end;
Very urgent for scripted servers.
No tags attached.
duplicate of 0000018resolved Fryer Soldat Dedicated Server Bullets created by CreateBullet() are invisible 
Issue History
2011-10-01 16:45TheOneNew Issue
2011-10-01 19:40FryerRelationship addedduplicate of 0000018
2011-10-01 19:40FryerStatusnew => resolved
2011-10-01 19:40FryerFixed in Version => 1.6.1
2011-10-01 19:40FryerResolutionopen => fixed
2011-10-01 19:40FryerAssigned To => Fryer
2014-01-09 17:40homerofgodsStatusresolved => closed

There are no notes attached to this issue.