fodev.net

FOnline Development => Questions and Answers => Topic started by: Demenise on August 06, 2015, 07:41:56 pm

Title: I need help with a few things
Post by: Demenise on August 06, 2015, 07:41:56 pm
I have a perk that I want to change the player into a super mutant if they have it. How would I go about doing this?

also how do I limit a critters armor so they can use only specified armor? as in he can wear metal armor but not power armor.




Title: Re: (2238 SDK) I need help with a few things
Post by: Wipe on August 06, 2015, 10:49:47 pm
Just change crType to mutant on perk up and revert it on perk down; as for armor [and any other item] you can add own tests to critter_item_movement.fos
Title: Re: I need help with a few things
Post by: Demenise on August 07, 2015, 03:40:31 am
Thanks Wipe.

But I have a problem when trying to change the skin on perk up it only turns my player into a turret and only after restarting the server.
Title: Re: I need help with a few things
Post by: Wipe on August 07, 2015, 10:09:03 pm
Sounds like you're passing wrong crType argument somewhere; mutant have value ~20 while turret is >100 [with standard config].

While you're on it, try ChangeCrTypeSafe (https://github.com/rotators/fo2238/blob/master/Server/scripts/utils.fos#L2428-L2440) from 2238 to change skins; it should take care of most things needed to smoothly change critters animation.
Title: Re: I need help with a few things
Post by: Demenise on August 07, 2015, 10:35:24 pm
Alright will do thank you for helping me.