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 Sat Apr 20, 2024 6:36 am
All times are UTC + 0
Weapon Question
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [8 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Cranium
Defense Minister


Joined: 05 Dec 2009
Location: USA

PostPosted: Mon Aug 29, 2011 7:03 pm    Post subject:  Weapon Question Reply with quote  Mark this post and the followings unread

Can someone tell me why this weapon will ONLY fire at tree's and nothing else?

Code:

;***************************************************
;******************RALASER Weapon*******************
;***************************************************

[AntiALASERS]
AmbientDamage=50
Anim=EMP_FX01
Bright=yes
Burst=2
Damage=50
IsHouseColor=yes
IsLaser=yes
IsBigLaser=yes
LaserInnerColor=255,0,0
LaserOuterColor=0,255,0
LaserOuterSpread=20
LaserDuration=20
Projectile=APLASERP
Range=18
ROF=50
Report=PLSECAN2
Speed=50
TerrainFire=yes
Warhead=APLASERWH
LaserThickness=10

[APLASERP]
Inviso=yes
Image=none
AA=yes
AG=yes
AN=yes
SubjectToCliffs=no
SubjectToElevation=no
SubjectToWalls=no

[APLASERWH]
CellSpread=1.5
Verses=100%,100%,100%,100%,100%,100%,100%,100%,100%,100%,100%     
EMEffect=yes
AnimList=EMPLASERPULSE
EMP.Duration=280
EMP.Cap=360

_________________

The enemy shall be injected with toxic poison - Venom

Back to top
View user's profile Send private message Visit poster's website Skype Account
ArvinCool
Tiberian Beast


Joined: 01 Jun 2008

PostPosted: Mon Aug 29, 2011 7:15 pm    Post subject: Reply with quote  Mark this post and the followings unread

Don't use AN=yes(tag is obsolete).
EMEffect=yes have no effect with or without Ares.
Also may I ask why you use IsHouseColor=yes with LaserInnerColor and LaserOuterColor=?

Have you tried without TerrainFire=yes?

_________________
"I'll be staying strapped cuse my mac-eleven make my nuts bigger"

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


Joined: 19 Nov 2003

PostPosted: Mon Aug 29, 2011 7:16 pm    Post subject: Reply with quote  Mark this post and the followings unread

TerrainFire=yes.... Rolling Eyes seriously... #evil

and Arvin's comments can be ignored, he has no clue apart from AN=yes which serves no use there... and of course empeffect but thats just not an issue.

Also LaserOuterSpread=20 ; wrong like value, it expects rgb not an size value while discarded due to housecolor like innercolor & outercolor so defining them makes no difference.
Anim=EMP_FX01 ; again terrible idea, the animation is normally a forever loop unless you fixed this...
AmbientDamage is declared uselessly and usage of such in an AA capable weapon would be a no-no anyway, to parse ambientdamage field you need IsRailgun=true and some particle system hooked in or issonic like wavebeam routines.

The problem is likely elsewhere.

Last edited by ApolloTD on Mon Aug 29, 2011 7:37 pm; edited 1 time in total

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


Joined: 05 Dec 2009
Location: USA

PostPosted: Mon Aug 29, 2011 7:21 pm    Post subject: Reply with quote  Mark this post and the followings unread

I put TerrainFire=yes in afterwards to see if it would fire at something. It does fire, but only at trees. So why would it fire at terrain objects and nothing else?

_________________

The enemy shall be injected with toxic poison - Venom

Back to top
View user's profile Send private message Visit poster's website Skype Account
ArvinCool
Tiberian Beast


Joined: 01 Jun 2008

PostPosted: Mon Aug 29, 2011 7:21 pm    Post subject: Reply with quote  Mark this post and the followings unread

heh, why?
Am I wrong about EMEffect?(to apollo)

_________________
"I'll be staying strapped cuse my mac-eleven make my nuts bigger"

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


Joined: 05 Dec 2009
Location: USA

PostPosted: Mon Aug 29, 2011 7:28 pm    Post subject: Reply with quote  Mark this post and the followings unread

Na, your right about the emeffect=. It's just there from a c/p warhead. But other than that I dont see why TerrainFire=yes would stop it from firing at other things. That tags just allows you to also fire at Terrain Objects from what I gather.

_________________

The enemy shall be injected with toxic poison - Venom

Back to top
View user's profile Send private message Visit poster's website Skype Account
Starkku
Cyborg Commando


Joined: 28 Dec 2007
Location: Finland

PostPosted: Mon Aug 29, 2011 7:34 pm    Post subject: Reply with quote  Mark this post and the followings unread

Cranium wrote:
Na, your right about the emeffect=. It's just there from a c/p warhead. But other than that I dont see why TerrainFire=yes would stop it from firing at other things. That tags just allows you to also fire at Terrain Objects from what I gather.


It's not TerrainFire=yes. I tested your code as is by giving it to Patriot (and yes, I was running Ares). It let me target Rocketeers as an example just fine so how about checking the structure/unit code and you should definitely clean up your weapon code.

AmbientDamage= does not do crap without IsRailgun=true or IsSonic=yes. As ArvinCool stated, laser color flags are unnecessary with IsHouseColor=yes and even if they weren't you have apparently misunderstood how LaserOuterSpread= works. You don't define a single value, but a comma-separated list of three RGB values which are used for fluctuating laser color effect.

_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Twitter Channel URL
Cranium
Defense Minister


Joined: 05 Dec 2009
Location: USA

PostPosted: Mon Aug 29, 2011 7:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

Wierd, I had this weapon working perfectly before. But, yes, it was indeed the structure code. Some how my dumb ass managed to put LandTargeting=1 for some unknown reason. What a pisser. I had been back and forth changing my weapon codes several several times and is why it's so messy. Confused Ah well, crap happens I guess. Thanks a bunch guys.

_________________

The enemy shall be injected with toxic poison - Venom

Back to top
View user's profile Send private message Visit poster's website Skype Account
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [8 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.1645s ][ Queries: 11 (0.0079s) ][ Debug on ]