Author Topic: LYING, how to check it?  (Read 1621 times)

0 Members and 1 Guest are viewing this topic.

Offline Vyka

  • Major
  • *
  • Posts: 59
LYING, how to check it?
« on: September 23, 2008, 03:32:15 pm »
Hi, i need help.

How to get informations about player? LYING or not?

there isn't type variable in GetPlayerStat, i checked it!

so, how to do it?

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: LYING, how to check it?
« Reply #1 on: September 23, 2008, 03:54:34 pm »
what kind of information do you need about the player?

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: LYING, how to check it?
« Reply #2 on: September 23, 2008, 07:45:28 pm »
what kind of information do you need about the player?
I think he means if the player is prone.

And atm there is no way that I know of. Possibly suggestion: GetPlayerStat(ID, 'prone') that returns boolean... same with crouching.

Offline Vyka

  • Major
  • *
  • Posts: 59
Re: LYING, how to check it?
« Reply #3 on: September 25, 2008, 11:36:42 am »
Yes iDante. I have to check 'prone', because im writing soldat worms mod.

GetPlayerStat(ID,'prone') isn't working.

Server console says: "Invalid variant operation"!

have you got any idea how to do this?

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: LYING, how to check it?
« Reply #4 on: September 25, 2008, 11:42:56 am »
I use GetKeyState(ID,'prone'); but I am not sure if that is in the current released script core or not. I think the latter. If not, consider it a feature of the next release.

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: LYING, how to check it?
« Reply #5 on: September 25, 2008, 11:49:23 am »
because im writing soldat worms mod.

someone is doing it already :) its almost finished.. #soldat.worms

Offline Laser Guy

  • Veteran
  • *****
  • Posts: 1679
Re: LYING, how to check it?
« Reply #6 on: September 25, 2008, 11:51:59 am »
Wow, sounds like fun Bombski :P
Text goes here...

Offline Vyka

  • Major
  • *
  • Posts: 59
Re: LYING, how to check it?
« Reply #7 on: September 25, 2008, 11:54:37 am »
Ok BombSki, but i need another script for soldat worms league...

EnEsCe, ill check it, and msg if works or not...

edit:
I wrote code, but i don't work... :|

any better idea? i really need it! :)
« Last Edit: September 25, 2008, 12:07:58 pm by Vyka »

Offline MetalWarrior

  • Major(1)
  • Posts: 22
Re: LYING, how to check it?
« Reply #8 on: September 27, 2008, 01:12:09 pm »
because im writing soldat worms mod.

someone is doing it already :) its almost finished.. #soldat.worms
I am fairly certain he means the dodgeball mode where everyone lies down and throws knives; not the turn-based game 'worms'.

Anyway, Vyka, in the current ScriptCore I don't believe there is an easy way to do this. It may be worth testing to see if the Y Co-ordinates change when a player goes prone (which I doubt), if they do then it would be simple enough to check if the player is prone provided you require them to be touching the ground.

Offline Vyka

  • Major
  • *
  • Posts: 59
Re: LYING, how to check it?
« Reply #9 on: September 27, 2008, 01:26:55 pm »
Yay man, you know what gameplay I  want to script :)

Today, I tested Y coordinate, but it wrongs sometimes.
Y  when somebody is prone on "db_wormseto" :  177.1 and higher to 177.9
but unfortunately, it sometimes jump up to 178 and more...  sometimes to 178.8, that sux.    : |
so i cant script that good... i need to have better way to check it...

if you don't believe me, you can test it:
Code: [Select]
procedure AppOnIdle(Ticks: integer);
var
X,Y:single;
begin
     for i:=1 to 10 do begin
          GetPlayerXY(i,X,Y);
          WriteConsole(i,+floattostr(Y),$ff000);
     end;
end;
« Last Edit: September 27, 2008, 01:32:05 pm by Vyka »

Offline miketh2005

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 668
  • What's the URL for www.microsoft.com?
Re: LYING, how to check it?
« Reply #10 on: September 27, 2008, 03:34:28 pm »
because im writing soldat worms mod.

someone is doing it already :) its almost finished.. #soldat.worms

If you mean the Worms game ported to Soldat, we're making it too, LOL! Ours will be much better though ;)
Quote from: 'Ando.' pid='12999178' dateline='1309046898'
My new password is secure as shit :)
Mate, I am not sure Shit is even secured nowadays.

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Re: LYING, how to check it?
« Reply #11 on: September 27, 2008, 07:17:09 pm »
because im writing soldat worms mod.

someone is doing it already :) its almost finished.. #soldat.worms

If you mean the Worms game ported to Soldat, we're making it too, LOL! Ours will be much better though ;)
You mean like turn-based soldat?
How would you keep everyone in place, yet allow them to be pushed around by explosions?
And there will be no destructible terrain, which is a big plus factor of worms.
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs

Offline miketh2005

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 668
  • What's the URL for www.microsoft.com?
Re: LYING, how to check it?
« Reply #12 on: September 27, 2008, 07:27:11 pm »
We'll work around it, of course it won't be exactly like Worms...
Quote from: 'Ando.' pid='12999178' dateline='1309046898'
My new password is secure as shit :)
Mate, I am not sure Shit is even secured nowadays.

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: LYING, how to check it?
« Reply #13 on: September 28, 2008, 01:20:34 am »
MetalWarrior is already making worms. You get pushed by explosions, have diffrent weapons, and u do stay in one place. Check it out at #soldat.worms, it rocks

Offline Vyka

  • Major
  • *
  • Posts: 59
Re: LYING, how to check it?
« Reply #14 on: September 28, 2008, 10:47:24 am »