some weapon I made years ago

Discussions about Coding and Scripting
Post Reply
ClimateChange
Novice
Posts: 18
Joined: Fri Sep 13, 2019 3:34 am

some weapon I made years ago

Post by ClimateChange » Wed Dec 04, 2019 3:35 am

There are some MH servers out there that has some maps in which I added my weapons. One of them is a rocket with shock rifle trail and shock combo explosion. Why does it explode with 2 shock combos at the same time? I don't know how to program. Back then I just copied the explosion from one weapon to the other without even knowing what a function is. I think the shock combo only displays duplicated online, it doesn't happen offline.

User avatar
papercoffee
Godlike
Posts: 9411
Joined: Wed Jul 15, 2009 11:36 am
Personal rank: coffee addicted !!!
Location: Cologne, the city with the big cathedral.
Contact:

Re: some weapon I made years ago

Post by papercoffee » Wed Dec 04, 2019 2:25 pm

What exactly do you want to know?
It's not clear what your question is.

ClimateChange
Novice
Posts: 18
Joined: Fri Sep 13, 2019 3:34 am

Re: some weapon I made years ago

Post by ClimateChange » Wed Dec 04, 2019 5:57 pm

Image

This bug. The shock combo is duplicated. When I test offline it doesn't happen.

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

Re: some weapon I made years ago

Post by Barbie » Thu Dec 05, 2019 9:57 pm

Post the code of that weapon.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

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

Re: some weapon I made years ago

Post by sektor2111 » Thu Dec 05, 2019 10:07 pm

It depends on how many functions are simulated and where the effects are created. If the effects are called in both server and client, then doubling is not unusual. In some projectiles I used bNetTemporary because otherwise I could see multiple bursts especially at high network latencies. Some effects called on the server are replicated to the client, if the client does the same thing then more than one effect occurs.

User avatar
EvilGrins
Godlike
Posts: 6456
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA
Contact:

Re: some weapon I made years ago

Post by EvilGrins » Fri Dec 06, 2019 5:59 am

ClimateChange wrote:
Wed Dec 04, 2019 5:57 pm
When I test offline it doesn't happen.
One of the first dragon monsters released for play in MonsterHunt was initially very popular until it was discovered that that it played great offline but online its projectiles made colorful streams in the air with no sense of where the dragon was shooting.

Details - http://www.online-multigaming.com/e107_ ... 0#post_286

Offline and online are frequently not the same for most aspects of the game, especially where projectiles are concerned.
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Image Image Image Image

Post Reply