Author Topic: questions regarding 2.6.0  (Read 1917 times)

0 Members and 1 Guest are viewing this topic.

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
questions regarding 2.6.0
« 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)
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: questions regarding 2.6.0
« Reply #1 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.

Offline HEX

  • Major
  • *
  • Posts: 77
  • =tNt=
    • SoldatX Brazilian Community
Re: questions regarding 2.6.0
« Reply #2 on: February 12, 2007, 10:43:11 am »
What's the total health of a player without vest?



Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Re: questions regarding 2.6.0
« Reply #3 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
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: questions regarding 2.6.0
« Reply #4 on: February 14, 2007, 01:38:19 am »
It could be possible.

Regarding 2):
Yeah that would work.

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Re: questions regarding 2.6.0
« Reply #5 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?!
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline ghg

  • Camper
  • ***
  • Posts: 411
  • Village Idiot
Re: questions regarding 2.6.0
« Reply #6 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.
-=Gradius wuz you=-