Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 19, 2024 5:25 pm
All times are UTC + 0
If tag
Moderators: Ares Support Team at PPM, Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Parasite03
Cyborg Artillery


Also Known As: ZivDero
Joined: 23 Jul 2013
Location: Russia

PostPosted: Wed Dec 18, 2013 12:56 pm    Post subject:  If tag
Subject description: Came up with a really nice thing
Reply with quote  Mark this post and the followings unread

Hello everyone. I had some spare time, so I thought of thins thing:
1. Add If= tag (described later),CustomCommandXX= tag and conditions. Also, while would be useful too. So, a thing like this:

[GASPOT]
CustomCommand01=if(Spotlight.EnemyDetected) {
Spotlight.DisableGreen=yes
Spotlight.DisableBlue=yes
}

This should make the game make the spotlight red if condition Spotlight.EnemyDetected which is basically "if there is enemy in the range that is Spotlight.Range, then do the thing". The same thing could be done via while, but it will also make it white back.

_________________
DarkVen9109 wrote:
What in the name of insanity is this? I FRICKING LOVE THIS LOGICCCC!!!!!!!!!!!!OOOOOOOOHEEAWWWWWWWWWWWYAAAAAAAAAAAAAAAAAWWWWWW PEW PEW PEW PEW BOOM BOOM BOOM!! Nice I love this!!!! Ferriswheel bomb, Dive bomb. New Logic discovered thanks to Kenosis Very Happy

_________________

Back to top
View user's profile Send private message
Glukv48
Cyborg Firebomber


Joined: 11 Nov 2012
Location: Russia, Krasnodar.

PostPosted: Wed Dec 18, 2013 1:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

For such things there is C++ and ASM levels.

Back to top
View user's profile Send private message
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Wed Dec 18, 2013 1:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

Would be much easier top just suggest controls for when an enemy is detected?

A script like system would be a lot of work to implement, and if so, integrate into the game.

Back to top
View user's profile Send private message
AlexB
Commander


Joined: 31 May 2010
Location: Germany

PostPosted: Wed Dec 18, 2013 4:07 pm    Post subject: Reply with quote  Mark this post and the followings unread

An INI file is a set of key/value pairs grouped by sections, and it does not know about the state of any game object. It just cannot know this. It doesn't even know what spotlights are, and whether a certain spotlight detected an enemy. Also, the type information for BuildingTypes does not change during a match. Thus, the color will not change. If it would, all spotlights on the map would change.

The simplest solution for this feature would be to add new tags like Spotlight.EnemyDetected.DisableGreen=, which defaults to Spotlight.DisableGreen.

_________________

Back to top
View user's profile Send private message
OmegaBolt
President


Joined: 21 Mar 2005
Location: York, England

PostPosted: Wed Dec 18, 2013 6:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

Or you could just give it a weapon with a little red light fire animation on the building. Might not change the actual spot light colour but it would give you the same information.

Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1816s ][ Queries: 11 (0.0084s) ][ Debug on ]