View previous topic :: View next topic |
Author |
Message |
srbassalot
Joined: 16 Sep 2004 Posts: 229 Location: Earth
|
Posted: Sat Sep 23, 2006 8:30 pm Post subject: Replacing Dispersion pistol issues |
|
|
First some background, I'm trying to replace the DispersionPistol with another weapon.
In the past I have done this with Jcoop4 and DZMapM. I would have Jcoop4 give the player the weapon I wanted them to have instead of the DispersionPistol then I would use DZMapM to replace the DispersionPistol for the same weapon I gave in Jcoop4.
Sounds confusing I know but DZMapM by itself would not preform this function properly. DZMapM will remove the DispersionPistol from the players inventory but it spawns the replacement weapon just behind the player (Actually looks like he's right on top of it but doesn't pick it up until he walks off it and back to it). On many maps you will run-off never knowing you didn't get it.
Not sure how/why it worked OK in Jcoop4 and doesn't work in JcoopZ but it doesn't. JcoopZ seems to spawn the replaced weapon differently or something...
If anyone knows anything about this issue (Maybe even Zombie himself)
I would be very grateful..
Thanks, as always guys...
SrBassalot ;) |
|
Back to top |
|
|
Zombie
Joined: 27 Jan 2004 Posts: 295
|
Posted: Sat Sep 23, 2006 9:46 pm Post subject: |
|
|
That issue can happen in JCoop4 too. I don't know why you didn't experience it while running that gametype, but from my knowledge the outcome should be the same.
Replacement mutators do not replace an item AND give that new replacement to a player. Replacement mutators only destroy the original and spawn the replacement. In the case of the defaultweapon it is spawned and then the gametype gives it to the player. If the defaultweapon is destroyed by a replacement mutator the gametype loses its reference to it and will not be able to find and add any weapon to inventory.
The gametype's defaultweapon property must be mutated, and in DZMapMv2.01 this is not done. The upcoming DZMapM release will be able to handle this with a configuration option. In the mean time I suggest trying an autoruncommand such as this:
set gameinfo defaultweapon none
That should prevent the gametype from ever spawning the dispersionpistol for players.
-Zombie _________________ GameType: JCoopZ1 - Build137 (11/30/12)
Mutator: DZMapM - 2.34 (12/15/11) |
|
Back to top |
|
|
srbassalot
Joined: 16 Sep 2004 Posts: 229 Location: Earth
|
Posted: Sun Sep 24, 2006 12:22 am Post subject: |
|
|
Thanks Zombie..I'm not sure why I didn't get that issue in Jcoop4 but I didn't that's for sure.
I was actually looking at Oblivion's xmas mod that included DZMapM.ini configs for his mod and I saw where he had added in the config...
ReplaceItem[2]=(Enabled=False,bUseSwitchReplace=False,OriginalName=DispersionPistol,ReplaceWithClass="",Alt1ReplaceWithClass="",Alt2ReplaceWithClass="",Alt3ReplaceWithClass="",ReplaceCount=0,CaseLimit=0)
That gave me the idea to try removing it with DZMapM by adding no data in "ReplaceWithClass" field and have JcoopZ give the new weapon and it worked like a champ.
I didn't know you could use DZMapM to remove items (Destroy) I use Wmutate for that but it doesn't work for the default weapon. I always assumed you had to enter something in the "ReplaceWithClass" field.
Thanks alot buddy...Appreciate your input as always..
AWESOME job on JcoopZ BTW..Very nice work..
I find it to be very stable,flexible and I'm sure it was a lot of work and I hope you are happy with it because as an end-user it rocks.
Regards,
Bass |
|
Back to top |
|
|
Zombie
Joined: 27 Jan 2004 Posts: 295
|
Posted: Sun Sep 24, 2006 3:07 am Post subject: |
|
|
Strange, having a blank ReplaceWithClass should not work. Only destroying an item is actually a new feature that was just implemented for the upcoming release. It is going to work by specifying "None" (ReplaceWithClass="None"). Well if everything works fine for you right now I suppose it doesn't matter. You can always try the set command I posted above if necessary too.
Nice to read that JCoopZ is working well. Feedback to me is generally small, and if you notice any real problems give an e-mail.
-Zombie _________________ GameType: JCoopZ1 - Build137 (11/30/12)
Mutator: DZMapM - 2.34 (12/15/11) |
|
Back to top |
|
|
|