EXILED icon indicating copy to clipboard operation
EXILED copied to clipboard

Ability to scale custom items

Open FakeMan2332 opened this issue 1 year ago • 14 comments

sorry for shitty commits, i'm fucked up with branches

FakeMan2332 avatar Jul 31 '22 18:07 FakeMan2332

~~Make different branch When you doing a PR~~ Okay strangely it's show your preview PR commits but it's already merged so ¯_(ツ)_/¯

louis1706 avatar Jul 31 '22 18:07 louis1706

Make different branch When you doing a PR

ye ye, i forgor about this i'm remembered when i'm going to open PR

FakeMan2332 avatar Jul 31 '22 18:07 FakeMan2332

Okay strangely it's show your preview PR commits but it's already merged so ¯_(ツ)_/¯ =)

it is main thing

FakeMan2332 avatar Jul 31 '22 18:07 FakeMan2332

Need to add similar shit to grenades and weapons I will do this soon.

FakeMan2332 avatar Aug 03 '22 06:08 FakeMan2332

I think, that's all. Other custom items based on parent class spawn method (CustomItem::Spawn(Vector3, Item, Player))

FakeMan2332 avatar Aug 03 '22 08:08 FakeMan2332

You forgot CustomGrenade::Throw method(scale for grenades)

IRacle1 avatar Aug 03 '22 08:08 IRacle1

You forgot CustomGrenade::Throw method(scale for grenades)

so, i need help with that i tried to use few methods - unsuccessfully.

FakeMan2332 avatar Aug 03 '22 13:08 FakeMan2332

trouble only with projectile. pickup resizes normally

FakeMan2332 avatar Aug 03 '22 13:08 FakeMan2332

show the code of what you have tried

louis1706 avatar Aug 03 '22 13:08 louis1706

thrownProjectile.gameObject.transform.localScale = Scale; before NetworkServer.Spawn, its works for me

P.S: not working

IRacle1 avatar Aug 03 '22 13:08 IRacle1

show the code of what you have tried

thrownProjectile.gameObject.transform.localScale = Scale; before NetworkServer.Spawn, its works for me at least this, without @IRacle1 hint

A Throw method is calling only when OnInternalChangingIntoGrenade firing

FakeMan2332 avatar Aug 03 '22 16:08 FakeMan2332

Wait no xD why i am assigned here ?

louis1706 avatar Aug 04 '22 06:08 louis1706

🫠

FakeMan2332 avatar Aug 04 '22 12:08 FakeMan2332

@Michal78900 how about to assign a labels to my shit? 👉👈🥺

FakeMan2332 avatar Aug 04 '22 12:08 FakeMan2332