Control Radius..

Control Radius..

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Control Radius..

Post by Snipawolf »

I was wondering what having a sphere, and if any unit walked out of this sphere it could no longer function, could do..

I was thinking this would be an interesting idea..

Is this already in as script that we can modify, or would we need to put two tags in?

controlled=(0 or 1)
controlsphere=(0 to infinite?)
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Zwzsg wrote a script that allows a unit to check if other units of a certain type are nearby. That'd be trivial to work from, although it is a pretty ugly/slow script since it uses get UNIT_HEIGHT to determine what is what and it doesn't use the engine's quad optimizations obviously.

I've modified it to handle the restocking of ammunition in GINTA, not much harder to make a unit check if it's in the radius and cease functioning if it isn't.
User avatar
Soulless1
Posts: 444
Joined: 07 Mar 2006, 03:29

Post by Soulless1 »

this would be cool for a 'Perimeter'-style energy-grid system, or maybe a 'synapse creature' function if anyone ever wants to make tyranids for the warhammer 40k mod... :-)
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

My idea for it was certain units on the human side would need a psychic guider for groups, a driver for one, or maybe a tower that controlled them...

Or it could be a "reversed" form of this and used to make robots continue with energy and the collective AI..
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Soulless1 wrote:this would be cool for a 'Perimeter'-style energy-grid system, or maybe a 'synapse creature' function if anyone ever wants to make tyranids for the warhammer 40k mod... :-)
The perimeter grid would be too complicated, you'd have to trace the route back to the mainframe for each generator since you can't have generators communicating to each other whether they are connected (otherwise I'd just have each generator tell others how many jumps it's away from the mainframe). Without any form of array or list a search through the tree is going to be awful.
Post Reply

Return to “Feature Requests”