Mutator "Gift From Decoration" for MonsterHunt

Search, find and discuss about Mutators!
Buggie
Masterful
Posts: 613
Joined: Sat Mar 21, 2020 5:32 am

Mutator "Gift From Decoration" for MonsterHunt

Post by Buggie » Sat Jul 11, 2020 11:25 am

Break decorations (barrels, tables, chairs, statues, etc.) to get inventory items (Armor, Health, Damage booster, Shield, weapons, etc.) for a limited time.

Before the disappearance of the gift is a countdown.
If the current weapon has disappeared, it will switch to the "best" weapon.
If it was Armor, it will disappear.
If the Inventory was expendable, such as ammo or Health pack - there will be no timer, Health will not decrease.

You can specify any inventory objects in the settings. For example, a BPak weapon.

If a player controls a Redemeer rocket during its disappearance, there may be various special effects.
Usually the rocket remains guided, but there is no crosshair, it is impossible to detonate it with a click, only crashing into something.
Also when Redemeer disappear rocket make sharp turn to launch orientation.
With all sorts of Jet can be a problems.

The weapon that is picked up is disappear. Ammo remains.
Therefore, if you do not use a Redemeer, then the next time there will be two rocket on it, not one.

Read .txt in archive for more info.
GiftFromDecoration_v0.4.zip
You do not have the required permissions to view the files attached to this post.
Last edited by Buggie on Tue May 11, 2021 1:58 pm, edited 6 times in total.

User avatar
Barbie
Godlike
Posts: 2135
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Mutator "Gift From Decoration" for MonsterHunt

Post by Barbie » Sat Jul 11, 2020 12:41 pm

Whow, I had the same idea, but have not realized it yet. A suggestion: add a probability value to each item so that for example a SuperShockRifle is not given as often as a health vital.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

Buggie
Masterful
Posts: 613
Joined: Sat Mar 21, 2020 5:32 am

Re: Mutator "Gift From Decoration" for MonsterHunt

Post by Buggie » Sat Jul 11, 2020 12:48 pm

Yep. it is your idea. I read your mind.
Currently You can place duplicates in list.
Insta one time, Vial 5 times.
Latter I add probability factor.
------
Added chance. Fix few bugs.

I remind you that this mutator does not need to be specified in ServerPackages so that there are no packet mismatch.
------
Fix few bugs.

Buggie
Masterful
Posts: 613
Joined: Sat Mar 21, 2020 5:32 am

Re: Mutator "Gift From Decoration" for MonsterHunt

Post by Buggie » Mon Apr 19, 2021 12:32 am

New version.
- Source removed from zip because it outdated: I use UnrealEd for edit code without mess with umake and text files.
- Change ini format for support new options: GiftChance, personal Lifespan for each item.
; Chance for create Gift when break Deco. [0; 1]
GiftChance=0.5

; You can list up to 100 Items. Empty items skipped.
; If Item can not be spawned - log record appear.
; On server do not forget list all Items on ServerPackages
; Gift fields:
; FullClass - full class name (with package) for item. Do not forget list Package in ServerPackages!
; Chance - just int value. Can be more 100. If 0 or less then use 1.
; Bigger chance - more often drop this item. But it depends on chances for other items.
; 5 and 10 - give first item less chance rather second.
; 5 and 1 - vice versa.
; By default all chances equal 1.
; Lifespan - seconds before Gift disappear. If 0 Item will not disappear
Gift[4]=(FullClass="UnrealShare.Amplifier",Chance=100,LifeSpan=20)
Gift[5]=(FullClass="UnrealShare.Armor",Chance=100,LifeSpan=40)
Gift[6]=(FullClass="UnrealShare.Health",Chance=100,LifeSpan=0)

User avatar
Barbie
Godlike
Posts: 2135
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Mutator "Gift From Decoration" for MonsterHunt

Post by Barbie » Mon Apr 19, 2021 7:36 pm

Buggie wrote:
Mon Apr 19, 2021 12:32 am
I use UnrealEd for edit code without mess with umake and text files
Why umake? I use UCC.EXE, but within a batch file that does some sanity checks, updates the version info and copies files from here to there. But the big advance is that I can use an editor for UC files of my choice - including syntax highlighting, bracket identification, auto save, ...

Leave out version, date and author infos of a project is easy for coder but harder for the people that use and maybe archive it - maybe it is necessary to roll back to a previous version. That's my experience of multiple decades messing around with computer stuff...
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

Buggie
Masterful
Posts: 613
Joined: Sat Mar 21, 2020 5:32 am

Re: Mutator "Gift From Decoration" for MonsterHunt

Post by Buggie » Mon Apr 19, 2021 7:52 pm

Because previously I use umake. Which obviously call ucc.
Does not matter. For me now more handful use UnrealEd for this.

Then they need use zip files dates :lol2:

User avatar
Barbie
Godlike
Posts: 2135
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Mutator "Gift From Decoration" for MonsterHunt

Post by Barbie » Mon Apr 19, 2021 11:01 pm

Buggie wrote:
Mon Apr 19, 2021 12:32 am
- Source removed from zip because it outdated
GiftFromDecoration.txt wrote:Source can be built with UMake.
:lol:
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

Buggie
Masterful
Posts: 613
Joined: Sat Mar 21, 2020 5:32 am

Re: Mutator "Gift From Decoration" for MonsterHunt

Post by Buggie » Mon Apr 19, 2021 11:11 pm

This is reason why I not like this versioning stuff. Most time you do some crap not connected with development itself.
Especially when need rename package listed in .Int file.
Rename package, edit .int, update in zip (add new, remove old), update ServerPackages for tests and so on. :mad2:

Buggie
Masterful
Posts: 613
Joined: Sat Mar 21, 2020 5:32 am

Re: Mutator "Gift From Decoration" for MonsterHunt

Post by Buggie » Sun May 02, 2021 2:23 pm

Added version 0.3.

- all setting in separate .ini file.
- Display version info at load.

User avatar
sektor2111
Godlike
Posts: 5431
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: Mutator "Gift From Decoration" for MonsterHunt

Post by sektor2111 » Sun May 02, 2021 4:16 pm

Buggie wrote:
Mon Apr 19, 2021 11:11 pm
update ServerPackages for tests and so on. :mad2:
I don't get why such thing must be in "Packages" and not only newer items. If these items are stock no packages completion is even needed.

Buggie
Masterful
Posts: 613
Joined: Sat Mar 21, 2020 5:32 am

Re: Mutator "Gift From Decoration" for MonsterHunt

Post by Buggie » Sun May 02, 2021 4:57 pm

Because need test network work.

User avatar
sektor2111
Godlike
Posts: 5431
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: Mutator "Gift From Decoration" for MonsterHunt

Post by sektor2111 » Sun May 02, 2021 6:57 pm

Why exactly is needed network when is completed a "Content" decoration with UT_Eightball ? Decoration drops a STOCK item which is replicated. Last thing needed in network is over-loading channels with these Not-Needed ones.

As a matter of fact someone was recommending SYF mutator in Serverpackages - another ZERO net usage stuff. That one stops Monster vs Monster fight and this is exclusively server's task, replicating it as package is useless as the simulated tick used for such cases... and more 'simulated-with-zero-net-purpose' things.

Eh, never mind, if I need something like this, I'll write my own stuff as Server-Side - all replication here is NATIVE. All player has BotPack and stock files after all.

Even document says that it's Server-Side :???: .

Buggie
Masterful
Posts: 613
Joined: Sat Mar 21, 2020 5:32 am

Re: Mutator "Gift From Decoration" for MonsterHunt

Post by Buggie » Sun May 02, 2021 7:19 pm

Because it be GENERAL answer, why I not like versioning stuff.

Buggie
Masterful
Posts: 613
Joined: Sat Mar 21, 2020 5:32 am

Re: Mutator "Gift From Decoration" for MonsterHunt

Post by Buggie » Tue May 11, 2021 1:59 pm

v0.4:
Messages about fail now include actor where this happen:

Code: Select all

Log(Class.Name $ ": Failed spawn class '" $ Gift[i].FullClass $ "' as" @ ItemClass @ "for" @ Other);