mines script

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
User avatar
Delphinio
Art contributor
Posts: 446
Joined: 21 Jan 2007, 06:04

mines script

Post 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
User avatar
kage
Regular
Regular
Posts: 751
Joined: 05 Dec 2006, 21:45

Re: mines script

Post 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.
Troman
Trained
Trained
Posts: 424
Joined: 12 Aug 2006, 15:40

Re: mines script

Post 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().
Sign Up for Beta-Testing:
?topic=1617.0
User avatar
Delphinio
Art contributor
Posts: 446
Joined: 21 Jan 2007, 06:04

Re: mines script

Post 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.
Troman
Trained
Trained
Posts: 424
Joined: 12 Aug 2006, 15:40

Re: mines script

Post 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.
Sign Up for Beta-Testing:
?topic=1617.0
User avatar
Delphinio
Art contributor
Posts: 446
Joined: 21 Jan 2007, 06:04

Re: mines script

Post 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.