0 Members and 1 Guest are viewing this topic.
The only way I can see this happening is if you were standing on only player collides polies (which would be funny) Or is could be some kind of new bug.Normally all bullet types collide like they would if fired from a gun.
Erm... it goes thru "it"? You mean the player?Well, usually if you use createbullet, and the bullet belongs to the player you'r trying to kill (victim = bullet owner) , and also add some speed to it...it will do the same like ingame.When you shoot, the bullet is kinda ignorin' you at the shooting moment ( it stops ignorin you when it starts falling ) (afaik the bullets comes in the middle of you)Hope you understandFailboat ahead, didn't read the whole problem well enough!I have no sollution to that, maybe too high speed?
make sure its not from player 0 and there is someone else on the server (try adding bots)
All I can think of would be that you set player ID of the bullet to 0.Do other bullets created by CreateBullet with the same other parameters go through the ground?
function OnPlayerCommand(ID: Byte; Text: string): boolean;var x,y: single; begin if Text = '/turret' then begin SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),15); end; if Text = '/heal' then begin SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),16); end; if Text = '/invis' then begin SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),20); end; if Text = '/vest' then begin SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),19); end; if Text = '/help' then begin WriteConsole(ID,'/turret so spawn a turret.',$EE81FAA1); WriteConsole(ID,'/invis for predator.',$EE81FAA1); WriteConsole(ID,'/health to spawn a health box above you.',$EE81FAA1); WriteConsole(ID,'/vest for a vest.',$EE81FAA1); end; if Text = '/bomb' then begin CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y') - 100, -5, -5,100, 3, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y') - 100, 0, -5, 100, 3, 0); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y') - 100, 5, -5, 100, 3, 0); end; end;
function OnPlayerCommand(ID: Byte; Text: string): boolean;var x,y: single;begin if Text = '/turret' then begin SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),15); end; if Text = '/heal' then begin SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),16); end; if Text = '/invis' then begin SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),20); end; if Text = '/vest' then begin SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),19); end; if Text = '/help' then begin WriteConsole(ID,'/turret so spawn a turret.',$EE81FAA1); WriteConsole(ID,'/invis for predator.',$EE81FAA1); WriteConsole(ID,'/health to spawn a health box above you.',$EE81FAA1); WriteConsole(ID,'/vest for a vest.',$EE81FAA1); end; if Text = '/bomb' then begin CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y') - 100, -5, -5,100, 3, ID); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y') - 100, 0, -5, 100, 3, ID); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y') - 100, 5, -5, 100, 3, ID); end;end;
Code: [Select]function OnPlayerCommand(ID: Byte; Text: string): boolean;var x,y: single;begin if Text = '/turret' then begin SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),15); end; if Text = '/heal' then begin SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),16); end; if Text = '/invis' then begin SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),20); end; if Text = '/vest' then begin SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),19); end; if Text = '/help' then begin WriteConsole(ID,'/turret so spawn a turret.',$EE81FAA1); WriteConsole(ID,'/invis for predator.',$EE81FAA1); WriteConsole(ID,'/health to spawn a health box above you.',$EE81FAA1); WriteConsole(ID,'/vest for a vest.',$EE81FAA1); end; if Text = '/bomb' then begin CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y') - 100, -5, -5,100, 3, ID); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y') - 100, 0, -5, 100, 3, ID); CreateBullet(GetPlayerStat(ID,'x'), GetPlayerStat(ID,'y') - 100, 5, -5, 100, 3, ID); end;end; Try that.