Author Topic: SetWeaponActive() and GetFlagXY()  (Read 2196 times)

0 Members and 1 Guest are viewing this topic.

Offline Dodo1993

  • Major(1)
  • Posts: 5
SetWeaponActive() and GetFlagXY()
« on: February 08, 2015, 04:58:36 am »
1. SetWeaponActive():
- When a player choose a weapon, while dead yet it's respawn not get it. Will be empty handed. The player must wait until the respawning, and choose weapon :(
- Players really complain about it!
- Is this function in SC3? Because i can`t be found on the wiki. And is working properly?

2. GetFlagXY():
- Sometimes it shows the wrong coordinates.
- Then shows the coordinates: x=0 y=0.
- There is something similar in SC3? Because i can`t be found on the wiki.
- And whether to SC3 is working properly.

Edit:
It doesn`t work well (on soldat server 2.7.8):
Bonus_Frequency=0
Spoiling the game of 1.6... version
« Last Edit: February 08, 2015, 05:24:00 am by Dodo1993 »

Offline ExHunter

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 154
  • Speedy go!
Re: SetWeaponActive() and GetFlagXY()
« Reply #1 on: February 08, 2015, 07:38:39 am »
1. SetWeaponActive currently does not work properly. It is fixed in 1.6.9.
SC3 equivalent: http://wiki.soldat.pl/index.php/TActivePlayer.WeaponActive

2. Maybe it shows x=0 and y=0 because flag does not exist (due what reason ever)? Could you check this?
SC3 equivalent: http://wiki.soldat.pl/index.php/TActiveFlag (http://wiki.soldat.pl/index.php/TMap.RedFlag http://wiki.soldat.pl/index.php/TMap.BlueFlag http://wiki.soldat.pl/index.php/TMap.YellowFlag)
« Last Edit: February 08, 2015, 07:40:42 am by ExHunter »

Offline Dodo1993

  • Major(1)
  • Posts: 5
Re: SetWeaponActive() and GetFlagXY()
« Reply #2 on: February 08, 2015, 09:04:29 am »
Very thanks man!

When can we expect 1.6.9?

//Double post merged by Furai. Please don't double post in the future. Also if I find out that you are another alt of Dominikk then you're going down.
« Last Edit: February 08, 2015, 12:08:09 pm by Furai »

DarkCrusade

  • Guest
Re: SetWeaponActive() and GetFlagXY()
« Reply #3 on: February 09, 2015, 02:51:58 pm »
1) Registered yesterday

2) Scripting

3) Google Translate English

4) Any questions?

He had registered here in late 2014 as Dodo001 already and asked similiar questions. It's definitely him, and he already appears to be 50% of all the accounts below 10 posts lol.
« Last Edit: February 09, 2015, 02:53:36 pm by DarkCrusade »

Offline Savage

  • Soldier
  • **
  • Posts: 155
Re: SetWeaponActive() and GetFlagXY()
« Reply #4 on: April 23, 2015, 09:46:42 am »
2. Maybe it shows x=0 and y=0 because flag does not exist (due what reason ever)? Could you check this?
SC3 equivalent: http://wiki.soldat.pl/index.php/TActiveFlag (http://wiki.soldat.pl/index.php/TMap.RedFlag http://wiki.soldat.pl/index.php/TMap.BlueFlag http://wiki.soldat.pl/index.php/TMap.YellowFlag)

I'm using god mode script(sc2) on my coop climb server and it's checking every 3 ticks flags positions, when the player with god mode will reach the distance to flag less than 50 soldat units then he gets disabled god mode and death to prevent him from catching the flag and destroying the game. It works good after server restart, after few hours flags x and y are 0 but they still exists ;d.
I wasn't checking that in SC3.