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 Thu Apr 18, 2024 9:21 am
All times are UTC + 0
Weapon= on Animation doesn't do damage
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [7 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Ousagi
Cyborg Soldier


Joined: 02 Nov 2022

PostPosted: Thu Nov 03, 2022 10:48 pm    Post subject:  Weapon= on Animation doesn't do damage Reply with quote  Mark this post and the followings unread

This works for me:

Code:
[Tsarky]
Damage=1
ROF=5
Range=10
Projectile=LeechBeam
Speed=100
Report=
Warhead=TsarkyWH
Bright=yes
LaserInnerColor = 216,0,184
LaserDuration = 10
IsLaser=true   ; this flag tells the game to use the special laser draw effect
FeedbackWeapon=Repairing
IsSingleColor=yes

[LeechBeam]      ; Anti-surface bullet for Flak Track.
Image=none
Inviso=yes
AA=no
AG=yes
SubjectToCliffs=no
SubjectToElevation=no
SubjectToWalls=yes

[TsarkyWH]
Verses=0%,0%,0%,100%,100%,100%,100%,100%,100%,100%,100%
Conventional=yes
Bright=yes

[Repairing]      ; Feedback weapon for LeechBeam, tested not actually does damage to firer
Damage=1
ROF=25
Range=5
Projectile=Invisible
Speed=50
Report=FlakTrackAttackGround      ; put in new sound for this
Warhead=RepairingWH

[RepairingWH]
CellSpread=.5
PercentAtMax=.5
Verses=100%,100%,100%,100%,100%,100%,100%,100%,100%,100%,100%
InfDeath=2
AnimList=REPAIRING
Bright=yes

[REPAIRING]
Weapon=Repair
Normalized=yes
Layer=ground
UseNormalLight=yes
Damage=2
Damage.Delay=8

[Repair]
Projectile=Invisible
Report=FlakTrackAttackGround      ; put in new sound for this
Warhead=RepairWH

[RepairWH]
Verses=-100%,-100%,-100%,-100%,-100%,-100%,-100%,-100%,-100%,-100%,-100%
InfDeath=2
Bright=yes

But this doesn't:
Code:
[Tsarky]
Damage=1
ROF=5
Range=10
Projectile=LeechBeam
Speed=100
Report=
Warhead=TsarkyWH
Bright=yes
LaserInnerColor = 216,0,184
LaserDuration = 10
IsLaser=true   ; this flag tells the game to use the special laser draw effect
FeedbackWeapon=Repairing
IsSingleColor=yes

[LeechBeam]      ; Anti-surface bullet for Flak Track.
Image=none
Inviso=yes
AA=no
AG=yes
SubjectToCliffs=no
SubjectToElevation=no
SubjectToWalls=yes

[TsarkyWH]
Verses=0%,0%,0%,100%,100%,100%,100%,100%,100%,100%,100%
Conventional=yes
Bright=yes

[Repairing]      ; Feedback weapon for LeechBeam, tested not actually does damage to firer
Damage=1
ROF=25
Range=5
Projectile=Invisible
Speed=50
Report=FlakTrackAttackGround      ; put in new sound for this
Warhead=RepairingWH

[RepairingWH]
CellSpread=.5
PercentAtMax=.5
Verses=100%,100%,100%,100%,100%,100%,100%,100%,100%,100%,100%
InfDeath=2
AnimList=REPAIRING
Bright=yes

[REPAIRING]
Weapon=Repair
Normalized=yes
Layer=ground
UseNormalLight=yes

[Repair]
Damage=100
Projectile=Invisible
Report=FlakTrackAttackGround      ; put in new sound for this
Warhead=RepairWH

[RepairWH]
Verses=-100%,-100%,-100%,-100%,-100%,-100%,-100%,-100%,-100%,-100%,-100%
InfDeath=2
Bright=yes


Its suppose to heal the unit but if the damage is put to the Weapon= it doesn't work but if you put it in directly on the Animation it does.
This is a Feedback weapon which means the animation is on the firer

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


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Thu Nov 03, 2022 11:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

Again you dont need to attach an extra weapon to the [REPAIRING] animation, just use the [Repairing] weapon (you really should use different names for them) to heal the unit.

Add Verses=-100% to [RepairingWH] & remove [Repair] & [RepairWH].

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Ousagi
Cyborg Soldier


Joined: 02 Nov 2022

PostPosted: Thu Nov 03, 2022 11:26 pm    Post subject: Reply with quote  Mark this post and the followings unread

That would heal everything BUT the unit itself as described for the feedback.weapon=.
The animation is to heal the firer specifically and not anything else around it.

Tried what you told with Cellspread=2.5, Damage=100, and kept Verses=100%, but it affected everything but the unit.
It destroyed everything but the unit.

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


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Thu Nov 03, 2022 11:52 pm    Post subject: Reply with quote  Mark this post and the followings unread

Why did you change Cellspread from 0.5 to 2.5? At 0.5 it will only effect the cell the unit is on, with 2.5 it will effect all units within a 2 cells radius.

Verses with 100% will do damage, Verses with -100% will do negative damage & heal the unit.

You can use AffectsEnemies=no & AffectsOwner=yes on the warhead to make sure it only repairs the unit too.

I double checked the Ares manual & it does mention that you need to use Damage= along with Weapon= on an animation to make it work, Sorry I miss remembered the specifics.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Ousagi
Cyborg Soldier


Joined: 02 Nov 2022

PostPosted: Fri Nov 04, 2022 12:13 am    Post subject: Reply with quote  Mark this post and the followings unread

Tested, it didn't work:

Code:
[Repairing]      ; Feedback weapon for LeechBeam, tested not actually does damage to firer
Damage=10
ROF=1
Range=5
Projectile=Invisible
Speed=100
Report=FlakTrackAttackGround      ; put in new sound for this
Warhead=RepairingWH

[RepairingWH]
AffectsOwner=yes
AffectsEnemies=no
Verses=-100%,-100%,-100%,-100%,-100%,-100%,-100%,-100%,-100%,-100%,-100%
AnimList=
Bright=yes


And the "Cellspread=2.5, Damage=100, and kept Verses=100%" was to show how I checked if it worked.
Don't worry, I know about what those code do already.

Also boolean means "yes/no" or "true or false"? Either way I tried both and still didn't work

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


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Fri Nov 04, 2022 12:24 am    Post subject: Reply with quote  Mark this post and the followings unread

Try adding AllowDamageOnSelf=true to the warhead too.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Ousagi
Cyborg Soldier


Joined: 02 Nov 2022

PostPosted: Fri Nov 04, 2022 12:33 am    Post subject: Reply with quote  Mark this post and the followings unread

That did it! Thank you again Mig Eater for the help!
I also have another post coming. This is solved.

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