Official Soldat Forums

Server Talk => Scripting Discussions and Help => Topic started by: Avarax on February 12, 2007, 06:44:34 am

Title: questions regarding 2.6.0
Post 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)
Title: Re: questions regarding 2.6.0
Post by: EnEsCe on February 12, 2007, 08:14:31 am
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.
Title: Re: questions regarding 2.6.0
Post by: HEX on February 12, 2007, 10:43:11 am
What's the total health of a player without vest?
Title: Re: questions regarding 2.6.0
Post by: Avarax on February 13, 2007, 02:07:47 pm
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
Title: Re: questions regarding 2.6.0
Post by: EnEsCe on February 14, 2007, 01:38:19 am
It could be possible.

Regarding 2):
Yeah that would work.
Title: Re: questions regarding 2.6.0
Post by: Avarax on February 24, 2007, 05:26:00 am
oh and enesce... how about OnPlayerKill also containing a variable that is equal to the range / flighttime of the kill?!
Title: Re: questions regarding 2.6.0
Post by: ghg on March 14, 2007, 03:45:45 pm
What's the total health of a player without vest?
At a guess I'd say about 200.