Page 1 of 1

Help with entity ModelAttributes.

Posted: Fri Jul 03, 2015 9:54 pm
by Vertex
The idea is to create an environment of lava, but still do not quite understand how.

At my level I have put an entity called ModelAttributes , I created a model called Lava.

What else do I have to do? :(

Image

Re: Help with entity ModelAttributes.

Posted: Sat Jul 04, 2015 12:39 am
by Veleran
If you want to move through it It has to be flagged as empty,and add a Model State modifier entity to do damage by collision.The EChaos can give some waving distortion to the lava texture to look like the lava is moving.

Re: Help with entity ModelAttributes.

Posted: Sat Jul 04, 2015 1:57 am
by Vertex
Not understand the translator google does not help me much .

then what I mean is that no entity attributes using the model ( brush ) . ?

Re: Help with entity ModelAttributes.

Posted: Sat Jul 04, 2015 3:04 am
by Veleran
Do you mean the model attributes entity does nothing at all?You can also try look the brush properties.
It is supposed to tell the environment settings sounds that when you run on the lava a specific sound can be played.
This way you can have different sounds played as you run on different grounds.

;*********************************************************
;
; environment.ini
;
; defines player movement sounds when in different environments
;
;*********************************************************

[Default]
footsteps\footstep.wav


[Water]
footsteps\w1.wav
footsteps\w2.wav
footsteps\w3.wav

[Lava]

[ToxicGas]

[ZeroG]

[Frozen]

[Sludge]

[SlowMotion]

[FastMotion]

[Ladders]
footsteps\m1.wav
footsteps\m2.wav

[Unclimbable]

Re: Help with entity ModelAttributes.

Posted: Sat Jul 04, 2015 3:53 am
by Vertex
Ok, I get it. The attributes of the entity model is to establish sound where the player walks .

My question is that I can not run the company for a gap to establish it with sound wood model. I may be doing wrong?

Re: Help with entity ModelAttributes.

Posted: Sun Jul 05, 2015 12:54 am
by Veleran
I am not sure what you are saying ,but no,although the wood sounds should be common,a wood floor attributes has not been added yet.
You can still try play wood sounds for a frozen -for example model attributes model (and tell me if it worked).

I too would like some more model attributes added as a feature request, like :
Wood , Stone, Mud, Acid, Foliage , Twigs, and some spooky like - Bones, Bugs.
It would be cool for the atmosphere if you can get the sounds.

Re: Help with entity ModelAttributes.

Posted: Sun Jul 05, 2015 4:33 am
by Vertex
In my tests of learning, I realize that the model ATTRIBUTES entity is only for hollow models. Where to put it so utomatica on stage and his property is set for example in "Water," the character to be walked in contact with the ground heard the steps, but if this character jump, the sound of water is heard.

No achievement yet understand this at all.

Re: Help with entity ModelAttributes.

Posted: Sun Jul 05, 2015 5:44 am
by Veleran
Did you already try the liquid entity.which can play water sounds as you contact the water model brush?

Re: Help with entity ModelAttributes.

Posted: Mon Jul 06, 2015 5:05 pm
by Vertex
Image
I can not make this work . :x
I need that when you stand above the lava, its attribute decienda health. What am I doing wrong?

Image

Re: Help with entity ModelAttributes.

Posted: Mon Jul 06, 2015 10:15 pm
by Vertex
Image

No change health as soon as this player on lava. Modify attribute the entity does not work here . :cry:

Re: Help with entity ModelAttributes.

Posted: Mon Jul 06, 2015 11:13 pm
by Vertex
Ok, no problem.

Code: Select all

	// Orden de actualizacion.
	Update[()
	{
		Jugador.SetAttribute("SaludPawn",Jugador.GetAttribute("SaludPawn","Jugador"),"Player");
		Gorra.LuzLinterna();			// Encender y apagar linterna.
		
		
		Jugador.RotacionPersonaje();						// Rotando personaje.
		Jugador.MovimientoPersonaje();						// Movimiento personaje.
		Jugador.AnimandoPersonaje();						// Animaciones personaje.

		// Here pawn walk on Lava
		if(GetEventState("LavaDanger"))
		{
		ModifyAttribute("SaludPawn", -1, "Jugador");
		}
	
		
		
		
	}]
Now my concern , as I do to move the texture of a mild form of the model that represents Lava.

Re: Help with entity ModelAttributes.

Posted: Tue Jul 07, 2015 3:22 am
by Veleran
Add the lava box world model to a liquid Entity and set the DamageIn = true yo make the model damage the player.

In other cases you use a modelstatemodifier which is that make a world model do damage to the player.