0 Members and 4 Guests are viewing this topic.
Anyone else than me wants plain bullets spawned through CreateBullet() visible to anyone no matter which weapon he carries?
DoDamage should return the bulletstyle.
Do you mean OnPlayerDamage? Because DoDamage is a procedure, and even if it was a function, anything it returns (besides maybe how much of the player's health was lost?) would be useless.
Function OnHit(ID,Bullet:Byte):Boolean; // ID: Player being hit, Bullet: ID of the bulletbegin Result := false; // set to true to cancel hit registrationend;
Function OnPolygonTouch(ID,Type:Byte):Boolean; // ID: Player who touches a polygonbegin // Type: Polygon type Result := false; // set to true if he shall fall throughend;
There will be no procedure which triggers whenever a player shoots. There will be no event which triggers each tick or millisecond.
OnHit wouldn't trigger whenever someone shoots. It'll trigger whenever a player is being hit :3
Quote from: DarkCrusade on June 12, 2010, 01:14:24 pmOnHit wouldn't trigger whenever someone shoots. It'll trigger whenever a player is being hit :3That won't change frequency a lot.
Quote from: Gizd on June 13, 2010, 03:28:05 amQuote from: DarkCrusade on June 12, 2010, 01:14:24 pmOnHit wouldn't trigger whenever someone shoots. It'll trigger whenever a player is being hit :3That won't change frequency a lot.How 'bout OnPlayerDamage.And still it wouldn't be possible to negate the insta-kill explosives, because it still had to be removed the hardcoded part..
GetPlayerStat(ID,'Programmes'); // Returns the amount of programs running behind SoldatGetPlayerStat(ID,'TimeConnected'); // Returns the time (in seconds) a player is connected