#1 2014-09-08 01:02:28

gaya
Member

Weapon that creates or destroys blocks?

Does anyone have an example of a weapon that creates or destroys blocks in gameplay? Without having to enter edit mode.

Offline

#2 2014-09-08 15:52:57

Hypernova^
Member

Re: Weapon that creates or destroys blocks?

As far as I know, there are no weapons which currently have this feature.

Offline

#3 2014-09-08 18:48:27

gaya
Member

Re: Weapon that creates or destroys blocks?

I'm just curious if it's possible to use methods from the editing mode during gameplay, or if there's some kind of block. Like, can i replace the pulse rifle impact code with a "createblock" function, which calls the same functions the editing mode does?

Offline

#4 2014-09-09 20:25:49

Calinou
Moderator

Re: Weapon that creates or destroys blocks?

You probably don't want to do this, because light smoothing on stuff like terrain and curves will be broken. The geometry also won't be optimized anymore.

Offline

#5 2014-09-10 00:17:37

gaya
Member

Re: Weapon that creates or destroys blocks?

Are those rendering steps done only in editing mode? I just played a DM level and entered editing mode, edited some cubes, and started shooting again... can't i force those steps on non-editing mode?

Offline

#6 2014-09-10 07:27:35

Unnamed
Member

Re: Weapon that creates or destroys blocks?

You have to /remip. It just take about 0.1s maybe one second on huge maps, but it takes too long. I think this is the problem.

Offline

#7 2014-09-10 15:10:06

RaZgRiZ
Moderator

Re: Weapon that creates or destroys blocks?

Unnamed wrote:

You have to /remip. It just take about 0.1s maybe one second on huge maps, but it takes too long. I think this is the problem.

Then i guess the workaround would be limiting the area affected by the changed cube so that a remip can be localised to the affected place. The real issue is the textures, since creating new faces by adding or removing cubes leaves an unknown. I believe the last thing a mapper would want is trying to texture invisible faces in their map.

Offline

#8 2014-09-10 18:51:18

gaya
Member

Re: Weapon that creates or destroys blocks?

So, when people get into editing mode during a multiplayer battle, and someone edits some cubes, do all players feel this 0.1 s pause?

Offline

#9 2014-09-11 17:31:49

Calinou
Moderator

Re: Weapon that creates or destroys blocks?

gaya wrote:

So, when people get into editing mode during a multiplayer battle, and someone edits some cubes, do all players feel this 0.1 s pause?

No, the game will invalidate the merged cubes (demipping), which causes a slight freeze at the first editing operation. This breaks light smoothing.

Offline

#10 2014-09-11 19:55:09

gaya
Member

Re: Weapon that creates or destroys blocks?

But is that freeze perceptible for all players? So, if three players are editing the same map at the same time, are "hiccups" caused by cube editing?

If not, i don't see the reason why a weapon that does the same operation would be a problem.

Offline

#11 2014-09-12 16:16:23

Calinou
Moderator

Re: Weapon that creates or destroys blocks?

The other problem is subdivision: if you edit an high-sized cube with a lower-sized one, the game will try to subdivide the cube, which will fail for complex shapes, destroying the geometry. This is impossible to fix.

Last edited by Calinou (2014-09-12 16:16:31)

Offline

#12 2014-09-13 17:01:02

gaya
Member

Re: Weapon that creates or destroys blocks?

The editor allows such modification? If it allows, then, it's no problem since i'm going to use the very same functions of the editing mode.

Offline

#13 2014-09-15 13:34:41

spikeymikey0196
Member

Re: Weapon that creates or destroys blocks?

i would imagine that if someone were to alter the collision to not only show the collision effect/particle, but was to also have the same effect as using scroll up on a block in edit mode.. i dont know how you'd achieve that but it seems to be the only thing that makes sense xD

Offline

#14 2014-09-15 14:11:27

gaya
Member

Re: Weapon that creates or destroys blocks?

Exactly what i'm trying to do. :D

Offline

#15 2014-09-15 14:19:54

spikeymikey0196
Member

Re: Weapon that creates or destroys blocks?

well, good luck, i guess :3

Offline

#16 2014-09-17 19:40:18

spikeymikey0196
Member

Re: Weapon that creates or destroys blocks?

I remembered seeing something similar to this.. And heres the video :3

Offline

Board footer