Official Soldat Forums
Server Talk => Scripting Discussions and Help => Topic started by: Avarax on February 12, 2007, 06:44:34 am
-
1. Will OnPlayerKill trigger after everything that happens on a kill (+1 to score, set player death, kill message in killconsole and the big red killtext) or before?
2. Will DoDamage trigger OnPlayerDamage? If yes will the "shooter" variable be 255 (because of the server const being 255)?
3. Is 4000 the total health value of a soldat? (because it says "DoDamage(ID,400) for a definite kill" on enesce.com/help)
-
a) Wrong forum -> Scripting Help and Discussion
1) After Score change, before console message.
2) Yes. It will be self damage.
3) Its that high for if the player has a vest on.
-
What's the total health of a player without vest?
-
ok, would it be possible that you change it to let the OnPlayerKill trigger after the big red message saying "You killed Major" so people can implement a modified killmessage in their scripts?
regarding 2):
if i wanted to let the OnPlayerDamage know that the damage was caused by server damage, could i do it like this:
begin
dmg_by_server:=true;
DoDamage(1,4000);
----> OnPlayerDamage triggers while dmg_by_server remains true during the whole procedure
dmg_by_server:=false;
end;
is that possible?
Date Posted: February 12, 2007, 12:34:02 PM
answer pretty please? T_T
-
It could be possible.
Regarding 2):
Yeah that would work.
-
oh and enesce... how about OnPlayerKill also containing a variable that is equal to the range / flighttime of the kill?!
-
What's the total health of a player without vest?
At a guess I'd say about 200.