View unanswered posts | View active topics It is currently Thu Dec 26, 2024 8:11 pm



Reply to topic  [ 12 posts ] 
 Scan-grenade 
Author Message
User avatar

Joined: Thu Jan 05, 2012 8:18 am
Posts: 76
Location: In a Sauna, roasting to death
Reply with quote
Post Scan-grenade
After a short break at modding, i'm back asking you for some lua scripts.

One of the two things i dislike about B27, (other being the removal of friendly fire) is the need to scan areas with tools.
That's why i'm requesting a script that attached to a TDExplosive would instantly scan the whole map when the explosive gibs/explodes (if it's possible of course).


Thu Aug 02, 2012 12:28 pm
Profile
Banned

Joined: Wed Aug 01, 2012 1:07 pm
Posts: 28
Reply with quote
Post Re: Scan-grenade
A grenade that gibs invisible actors half a second?
It should work.


Thu Aug 02, 2012 4:17 pm
Profile
User avatar

Joined: Tue Apr 07, 2009 8:24 am
Posts: 193
Location: Australia
Reply with quote
Post Re: Scan-grenade
Should be possible, just loop through the map and use SceneMan:RevealUnseen(X,Y,self.parent.Team);


Thu Aug 02, 2012 11:28 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Scan-grenade
Code:
function Destroy(self)
    SceneMan:RevealUnseenBox(0, 0, SceneMan.SceneWidth, SceneMan.SceneHeight, self.Team);
end


Will reveal the entire scene for the player that threw it when it explodes.


Thu Aug 02, 2012 11:39 pm
Profile

Joined: Mon Mar 12, 2012 6:06 am
Posts: 58
Location: Flyin through the Matrix
Reply with quote
Post Re: Scan-grenade
Isnt it easier just to go spying around with a dropship?


Fri Aug 03, 2012 1:26 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Scan-grenade
That only works above ground, and is slow and not very cost efficient.


Fri Aug 03, 2012 1:36 am
Profile

Joined: Mon Mar 12, 2012 6:06 am
Posts: 58
Location: Flyin through the Matrix
Reply with quote
Post Re: Scan-grenade
If you want below ground just do the old standby, Hold down E or Q and then use the WASD keys to look around.

Sure its not as fast and useful as youd want it but still :L

But I wouldnt mind a full zoom out kinda thingy like your sugesting.


Fri Aug 03, 2012 1:44 am
Profile
User avatar

Joined: Sun Jan 28, 2007 10:32 pm
Posts: 1609
Location: UK
Reply with quote
Post Re: Scan-grenade
Uh, no, that doesn't work because of the fog of war.

Which this grenade is designed to clear.

Reread the topic from the start. :roll:


Fri Aug 03, 2012 2:03 am
Profile YIM

Joined: Mon Mar 12, 2012 6:06 am
Posts: 58
Location: Flyin through the Matrix
Reply with quote
Post Re: Scan-grenade
:oops:
*Facepalm*


Fri Aug 03, 2012 3:32 am
Profile
User avatar

Joined: Tue Apr 07, 2009 8:24 am
Posts: 193
Location: Australia
Reply with quote
Post Re: Scan-grenade
Roast Veg wrote:
Code:
function Destroy(self)
    SceneMan:RevealUnseenBox(0, 0, SceneMan.SceneWidth, SceneMan.SceneHeight, self.Team);
end


Will reveal the entire scene for the player that threw it when it explodes.

self.Team doesn't work for grenades but if you do for each team (0,1,2,3) it works good.


Fri Aug 03, 2012 4:37 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Scan-grenade
Are you sure it doesn't work for self.Team in B27?


Fri Aug 03, 2012 4:43 am
Profile
User avatar

Joined: Tue Apr 07, 2009 8:24 am
Posts: 193
Location: Australia
Reply with quote
Post Re: Scan-grenade
Roast Veg wrote:
Are you sure it doesn't work for self.Team in B27?

Yeah, I'm using the newest one with Techion in it and it doesn't do anything unless i manually specify the teams.


Fri Aug 03, 2012 5:25 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 12 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.130s | 14 Queries | GZIP : Off ]