Creating a ladder.
Has anyone succeeded?
I've tryed lots of stuff but nothing seems to work. Sure, the ent is created but i cant climb it... This didn't work. Code:
Could someone give me a hint or point me in the right direction? |
Re: Creating a ladder.
You cant make a ladder like that with amxx.
When making a map, a ladder consists of two brushes. One is a func_illusionary and the other is a func_ladder, layered one on top of the other. You would have to make two entities, func_illusionary then func_ladder and place the func_ladder over the func_illusionary. The func_illusionary brush holds the texture and the func_ladder is drawn invisible on map compile, which uses the trigger texture. |
Re: Creating a ladder.
ok... 2 bad :/
|
Re: Creating a ladder.
A ladder consists of one brush: func_ladder. A ladder doesn't require a visible brush nearby to be usable. Furthermore, not all ladder-representation brushes are func_illusionary.
This is how I create a brush model in my hostage AI plugin: Code:
This creates a func_wall over all func_illusionary entities, of the same size. Don't ask why. Basically, the requirements are: solid type is SOLID_BSP, move type is MOVETYPE_PUSH (game crashes if there is a SOLID_BSP without MOVETYPE_PUSH), and model index is the same as another brush model index (I first tried setting the model string, like you do, but it didn't work). I can't remember if the SetSize was required for it to work or not. Anyway, I don't know if you can create a ladder of a custom size, I think you probably have to leech off of existing brush models. Also, func_ladder might use a SOLID_TRIGGER instead of SOLID_BSP. |
Re: Creating a ladder.
Quote:
Even tutorials on how to make ladders describe the two brush method. The visible brush nearby is how a player knows a ladder is there. The two brush method for ladders exists for the reason that for func_ladder, the trigger texture is used. That texture is drawn invisible on map compile. Without the func_illusionary with the ladder texture, you would not be able to see the ladder dimensions or the ladder itself. |
Re: Creating a ladder.
Quote:
And it doesn't require to be a func_illusionary or even a brush entity. |
Re: Creating a ladder.
create a illusionary ladder! (:) )
|
Re: Creating a ladder.
Thank you all. I've tryed some different combinations and it didn't really work well... I can't climb it. It looks like I'm lagging my way trough it.
Code:
|
Re: Creating a ladder.
Quote:
|
Re: Creating a ladder.
Quote:
|
| All times are GMT -4. The time now is 22:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.