Page 1 of 1
Mutator to replace HUD
Posted: Fri Aug 24, 2012 2:47 am
by SFJake
http://wiki.beyondunreal.com/Legacy:DocAwk/Links
There is a beautiful link there but it doesn't work.
I need to do a mutator that replaces JCoopZ1's hud for another one. So far attempts have been incredibly futile and information on attempting anything like this is non-existant.
Except "create a new gametype", which is not possible for it to work with JCoopZ1.
The link being dead, I'm kind of just looking for information on this.
Re: Mutator to replace HUD
Posted: Fri Aug 24, 2012 4:01 am
by BobIsUnreal
This can absolutely be done.
here is a replacer example
http://wolf.tcpclan.net/projects/Unreal ... placer.txt
http://wolf.tcpclan.net/projects/Unreal ... placer.zip
you need to subclass jzHUD with your hud and compile against jcoopz1.u
( its possible for class hud)
Then adapt this code to set the hud:
PlayerPawn(Owner).myHUD = spawn(class'mymod.myHUDj', PlayerPawn(Owner));
I have a example mod here of a pickup that can toggle between the jzhud and a custom one, if you want i can pm it but it is not mine so i dont have the authority to give any one permision to reuse it.
Re: Mutator to replace HUD
Posted: Fri Aug 24, 2012 4:27 am
by SFJake
Thanks for the help, but you're confusing me a bit.
I'm not sure what to do. The replacer makes sense but on its own doesn't work with JCoopZ1.
I'm not sure what you're telling me to do with a subclass of jzhud.
I'd like to take a look at that item you have to toggle between the huds, I'm not going to use it but I just want to see how its done, so I can figure this out.
Re: Mutator to replace HUD
Posted: Fri Aug 24, 2012 5:11 am
by BobIsUnreal
You need to write your customl hud so that it expands jcoopz1's JZHUD class , not HUD or somehing. otherwise jcoopz wont let it change as the normal hud class is lacking important custom variables that jzhud has.
Re: Mutator to replace HUD
Posted: Fri Aug 24, 2012 5:16 am
by SFJake
Alright, thanks for that and the PM. I'll check that out tomorrow.