0 Members and 1 Guest are viewing this topic.
Quote from: Martino on September 10, 2007, 02:43:23 pmWhat about DoDamage(id,damage,shooter) so you can write who did damage. Because elsewhere it's written as suicide.Quote from: EnEsCe on August 31, 2007, 08:54:59 amDont suggest: Adding/Changing new parameters to any functions/events
What about DoDamage(id,damage,shooter) so you can write who did damage. Because elsewhere it's written as suicide.
Dont suggest: Adding/Changing new parameters to any functions/events
suggestion for positionif standing, return "|"if crouching and facing left, return ""if crouch and facing right, return "/"if prone, return "_"
OnFlagReturn does not get called when the server returns the flag (from it being untouched for too long)
procedure OnFlagReturn(ID,Team:byte);begin if (ID = 255) then exit;end;
- Pre-defined variables can only be Byte/Integer/String, not arrays or other variables.
A ARGB function that does exactly the same thing as RGB except there are 4 arguments and the first one is the set alpha amount.. or RGBA, i don't really know whats "proper" if either one is ... its so ppl who don't know how the $________ is set up can still set alpha.
function ARGB(alpha: byte; Red: byte; Green: byte; Blue: byte): Cardinal;begin result :=(alpha shl 24) or (red shl 16) or (green shl or blue;end;
Quote from: DorkeyDear on September 22, 2007, 08:09:43 am A ARGB function that does exactly the same thing as RGB except there are 4 arguments and the first one is the set alpha amount.. or RGBA, i don't really know whats "proper" if either one is ... its so ppl who don't know how the $________ is set up can still set alpha.I can't check right now, since my computer is down and I'm running off of an Ubuntu Live CD, but check if the script engine supports the SHL operator; if it does, you can make your own:Code: [Select]function ARGB(alpha: byte; Red: byte; Green: byte; Blue: byte): Cardinal;begin result :=(alpha shl 24) or (red shl 16) or (green shl or blue;end;
A OnRoundStart event for survival mode A OnRoundEnd event for survival mode