Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cluster damage causes CAC warning message #92

Open
IceRaptor opened this issue Apr 8, 2021 · 1 comment
Open

Cluster damage causes CAC warning message #92

IceRaptor opened this issue Apr 8, 2021 · 1 comment

Comments

@IceRaptor
Copy link
Collaborator

CAC logs include this line:
[11:55:40.957]WeaponHitInfo at grp:0 index:System.Nullable1[BattleTech.WeaponHitInfo][][] is null. How?! Again weapon without representation?! You realy should stop it!`

Per discussion with KMission, this is my fault because I'm not generating a weaponRef inside of CreateImaginaryAttack.

@IceRaptor
Copy link
Collaborator Author

all melee weapon in game have one representation
if (!this.MeleeWeapon.baseComponentRef.hasPrefabName) {
this.MeleeWeapon.baseComponentRef.prefabName = "chrPrfWeap_generic_melee";
this.MeleeWeapon.baseComponentRef.hasPrefabName = true;
}
this.MeleeWeapon.InitGameRep(this.MeleeWeapon.baseComponentRef.prefabName, this.GetAttachTransform(this.MeleeWeapon.mechComponentRef.MountedLocation), this.LogDisplayName);
you should just call InitGameRep for your self damage weapon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant