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

Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Tue May 26, 2020 9:10 am
All times are UTC + 0
 Forum index » Modding Central » Red Alert 2 Editing Forum » Tutorials Vault
SHP Railgun Particles by gamemate
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [19 Posts] View previous topic :: View next topic
Author Message
Kravvitz
Commander


Joined: 25 Mar 2003
Location: USA

PostPosted: Thu Jul 15, 2004 8:55 pm    Post subject:  SHP Railgun Particles by gamemate Reply with quote

gamemate wrote:
; Particle system
[XXXXSys]
BehavesLike=Railgun
HoldsWhat=XXXXPart
Spawns=yes
SpawnFrames=1
SpawnRadius=1
Slowdown= ; Can be any number, .002 is a good value
ParticleCap=7
SpawnCutoff=10
SpawnTranslucencyCutoff=11

; Particle
[XXXXPart]
BehavesLike=Railgun ; This is a must
BehavesLike=Smoke ; This aswell
MaxEC=30
Image=XXXX ; Short small anims are the best ones
Translucency=25
Velocity=5.0
Deacc=.05
WindEffect=0
DeleteOnStateLimit=yes
EndStateAI=20
StateAIAdvance=3

As you can see in the code I have kept the BehavesLike=Railgun and added BehavesLike=Smoke both must be present for this to work. This is the workaround part, I have not tested with sparks but I don´t see why it wouldn´t work.

The smaller the anim the better it will look ingame, large anims tend to overlay each other.

Extra note about warhead explosions, by adding Damage=1 the warhead anim will show up.

You could check the main page of the AR2 site to see how the anim turns out ingame.

http://deezire.net/modules.php?name=Forums&file=viewtopic&t=7276

Key Words: #Tutorials #Modding #RedAlert2 #YurisRevenge #Rules.INI 

_________________
Check out my FAQ and Modding Info Page.
Community Links Page
http://www.dynamicsitesolutions.com/

Back to top
View user's profile Send private message Visit poster's website Skype Account Yahoo Messenger Account AIM Address
Jah
Commander


Joined: 23 Nov 2002

PostPosted: Wed Jan 05, 2005 9:09 am    Post subject: Reply with quote

Great!


SCRN0021.png
 Description:
 Filesize:  70.71 KB
 Viewed:  21038 Time(s)

SCRN0021.png



_________________
in 2009 to Florence. Viva Italia!

Back to top
View user's profile Send private message Send e-mail
areaSZ
Scorpion Sniper


Joined: 19 Dec 2004
Location: Korea,south

PostPosted: Wed Jan 05, 2005 9:19 am    Post subject: Reply with quote

W Surprised W
_________________

Back to top
View user's profile Send private message
Blade
Cyborg Commando


Joined: 23 Dec 2003

PostPosted: Mon Jan 17, 2005 10:17 pm    Post subject: Reply with quote

Have you ever tested this on an infantry unit? I tested it in YR and got an internal error whenever the infantry attempted to fire (which sucks since I had a railgun infantry I would have lisked to use this on).

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


Joined: 23 Nov 2002

PostPosted: Tue Jan 18, 2005 12:06 am    Post subject: Reply with quote

You must exactly copy this code, do not add any other railgun tags like spirals, pertubation, etc... not needed
_________________
in 2009 to Florence. Viva Italia!

Back to top
View user's profile Send private message Send e-mail
Blade
Cyborg Commando


Joined: 23 Dec 2003

PostPosted: Tue Jan 18, 2005 3:45 pm    Post subject: Reply with quote

I'm fairly sure that I implemented the code exactly as described here.

Back to top
View user's profile Send private message
The DvD
TiberiumWeb.com Webmaster


Joined: 30 Dec 2002
Location: Netherlands

PostPosted: Tue Jan 18, 2005 4:24 pm    Post subject: Reply with quote

Quote:
BehavesLike=Railgun ; This is a must
BehavesLike=Smoke ; This aswell


..Right... this is BS! The latter tag would simple overwrite the first  Rolling Eyes

Back to top
View user's profile Send private message Visit poster's website Skype Account
John Galt
Commander


Joined: 01 Aug 2003
Location: Galt's Gulch

PostPosted: Tue Jan 18, 2005 4:42 pm    Post subject: Reply with quote

It works.

Back to top
View user's profile Send private message Visit poster's website Skype Account
The DvD
TiberiumWeb.com Webmaster


Joined: 30 Dec 2002
Location: Netherlands

PostPosted: Tue Jan 18, 2005 5:30 pm    Post subject: Reply with quote

How.

Does it give the same result as BehavesLike=Railgun,Smoke ?

Back to top
View user's profile Send private message Visit poster's website Skype Account
John Galt
Commander


Joined: 01 Aug 2003
Location: Galt's Gulch

PostPosted: Tue Jan 18, 2005 5:56 pm    Post subject: Reply with quote

It seems the BehavesLike acts in a different way than standard tags. Looking in a disassembler, I see code similar to:

if Tag_Is_Set(BehavesLike,Smoke)
then
do_this;

if Tag_Is_Set(BehavesLike,Gas)
then
do_that;

Which points to the fact that this tag can "stack" its values.
Curiously, BehavesLike=Railgun/Spark code is nowhere to be found. Also, the code suggests that a comma-separated list will not work here (just like PowersUpBuilding= does not accept a list [yet]).

Back to top
View user's profile Send private message Visit poster's website Skype Account
Jah
Commander


Joined: 23 Nov 2002

PostPosted: Tue Jan 18, 2005 6:22 pm    Post subject: Reply with quote

Yet? do ya have some some plans for future?
_________________
in 2009 to Florence. Viva Italia!

Back to top
View user's profile Send private message Send e-mail
Allied General
General


Joined: 19 Mar 2004
Location: United Kingdom

PostPosted: Thu Jan 20, 2005 10:13 am    Post subject: Reply with quote

The DvD before saying something is BS, actually try it out.

Also since gamemate is a member of AR2 and a well established community member and has visual prove of this which has proven by Big Jah and myself (in private modification) it would make sense to think b4 u respond.
_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Facebook Profile URL Twitter Channel URL
The DvD
TiberiumWeb.com Webmaster


Joined: 30 Dec 2002
Location: Netherlands

PostPosted: Thu Jan 20, 2005 11:52 am    Post subject: Reply with quote

Yes, but in ALL other cases putting a tag 2 times would simply make the value of the second tag overwrite the first...I'm applying basic logic here..

I'll try this myself, let's see if i'll come up with the same code.

EDIT: it's obvious the key tag here is BehavesLike=Smoke. Without it the game will crash if you put an image there. BTW the comment about using small anims is uneccesary (sp?) as you can easily change the

SpiralRadius=30
ParticlesPerCoord=.01
SpiralDeltaPerCoord=.035

values to make up for that Wink

Adding wind effects also make it look good.. if you would combine that with an anim that slowly disappeared (add translucency in art.ini and make it gradually disappear in the SHP) it would look even better.


mamrail.png
 Description:
 Filesize:  89.12 KB
 Viewed:  19947 Time(s)

mamrail.png



Back to top
View user's profile Send private message Visit poster's website Skype Account
Tratos
General


Joined: 01 Jan 2003

PostPosted: Thu Jan 20, 2005 2:11 pm    Post subject: Reply with quote

lol, binary railguns.

Back to top
View user's profile Send private message Send e-mail
Allied General
General


Joined: 19 Mar 2004
Location: United Kingdom

PostPosted: Fri Jan 21, 2005 9:42 am    Post subject: Reply with quote

lol that is funny but smaller anims do look better actually particle like anims look the best. If you use a massive anim, it just looks really bad.

SpiralRadius=30
ParticlesPerCoord=.01
SpiralDeltaPerCoord=.035

want to do a quick explaination of what higher figures, lower figures here, do?
_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Facebook Profile URL Twitter Channel URL
The DvD
TiberiumWeb.com Webmaster


Joined: 30 Dec 2002
Location: Netherlands

PostPosted: Fri Jan 21, 2005 12:11 pm    Post subject: Reply with quote

SpiralRadius is the radius in leptons(?) of the spirals of the railgun... pretty self-explanatoiry #Tongue

ParticlesPerCoord requires very small values, but it determines the amount of pixels/particles used to draw the railgun. For example the Desolator's weapon should have a pretty 'high' value here.. since the spirals are solid.

SpiralDeltaPerCoord determines the length of every spiral. (As the delta determines how fast one loop is completed)

Back to top
View user's profile Send private message Visit poster's website Skype Account
Jah
Commander


Joined: 23 Nov 2002

PostPosted: Fri Jan 21, 2005 3:52 pm    Post subject: Reply with quote

Desolator weapon is not a railgun. Its a special RAD-Beam logic.
_________________
in 2009 to Florence. Viva Italia!

Back to top
View user's profile Send private message Send e-mail
The DvD
TiberiumWeb.com Webmaster


Joined: 30 Dec 2002
Location: Netherlands

PostPosted: Fri Jan 21, 2005 4:22 pm    Post subject: Reply with quote

See i'm totally ignorant about RA2 #Tongue

They could have done it with a railgun but it would be quite slow.

Back to top
View user's profile Send private message Visit poster's website Skype Account
Jah
Commander


Joined: 23 Nov 2002

PostPosted: Sun May 01, 2005 11:18 am    Post subject: Reply with quote

Here, I've made up a particle for it. It should look like firestorm wall anim...


railpart.gif
 Description:
 Filesize:  1.32 KB
 Viewed:  19322 Time(s)

railpart.gif



railpart.shp
 Description:

Download
 Filename:  railpart.shp
 Filesize:  1.74 KB
 Downloaded:  1632 Time(s)


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 [19 Posts] View previous topic :: View next topic
 Forum index » Modding Central » Red Alert 2 Editing Forum » Tutorials Vault
Jump to:  
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.2815s ][ Queries: 15 (0.0629s) ][ Debug on ]