CWeapon

CWeapon

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10329
Joined: 24 Jan 2006, 21:12

CWeapon

Post by PicassoCT »

Any objections to adding a call to syncedctrl:
Spring.SetUnitWeaponPieces(unitID,WeaponNr,MuzzlePiece,AimPiece)

It would be stored in CWeapon, and would be used instead of a call to unitscript once set.
abma
Spring Developer
Posts: 3621
Joined: 01 Jun 2009, 00:08

Re: CWeapon

Post by abma »

(moved to feature requests forum)
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10329
Joined: 24 Jan 2006, 21:12

Re: CWeapon

Post by PicassoCT »

Sorry was answered by jk .

This is not necessary, as QueryWeaponPiece is called during Firing a Projectile, Aiming a Weapon, and SlowUpdate.
It doesent show up in the profilings as wastefull. The proposed function call is useless.

Keep this thread for reference on future search or delete it.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: CWeapon

Post by jK »

PicassoCT wrote:The proposed function call is useless.
It would be a design decision.
But then all such "return a piece" callins would need such a set-function.
And i am too lazy to write those for all.
Post Reply

Return to “Feature Requests”

cron