Page 1 of 1

mines script

Posted: 21 Jul 2007, 21:10
by Delphinio
hi,
i need some help with the mines ^^.
i want that the mines are visible for the team and not only for the builder.
thanks

Re: mines script

Posted: 22 Jul 2007, 02:28
by kage
1.12 hacked its way through mines using purely scripts -- no actual engine support, and not even the player that laid them could see them. now that source code is available, something better can certainly be done.

Re: mines script

Posted: 22 Jul 2007, 13:08
by Troman
Delphinio wrote: i want that the mines are visible for the team and not only for the builder.
How do you actually make it visible for the builder, with fireWeaponAtLoc(Blip, testMine.x, testMine.y); ? I think this will make a blip (what ever it is) visible to all players.
If you have found a way to make mines visible only to a certain player you just have to iterate through all players and see if they are allied to the owner of the blip.

BTW if you use a WZR version of warzone (2.0.6, 2.0.7 or SVN build), you can use

Code: Select all

console("some text");
for debugging purposes.

Another debugging function you might want to use is

Code: Select all

debugMenu(TRUE);  //Show debug menu
setDebugMenuEntry("some text", 0); //Add some text to the 0's entry (max 9 entries)
setDebugMenuEntry("some other text", 1); //Add some text to the 1's entry
This will open a debug menu at the right edge of the screen with 10 entries (lines) that can be filled with some text by the scripts, it's much more convenient than using setPowerLevel().

Re: mines script

Posted: 22 Jul 2007, 17:03
by Delphinio
Troman wrote: If you have found a way to make mines visible only to a certain player you just have to iterate through all players and see if they are allied to the owner of the blip.
and how?^^
this script is from 1.12 and i know not much about scripts.
well it works, the player which build the mine can see it and the others not.
but i want that the team can see it too... so i need a done script/script line.

Edit: i use the original warzone2100.

Re: mines script

Posted: 23 Jul 2007, 12:32
by Troman
Delphinio wrote: well it works, the player which build the mine can see it and the others not.
but i want that the team can see it too... so i need a done script/script line.
Personally I can't think of a way how to do this, sorry.

Re: mines script

Posted: 23 Jul 2007, 15:02
by Delphinio
:( hmm ok np maybe someone other?
it would be ok too if 0123 can c the mines from 0123 and 4567 from 4567.