Generate prefap in the map with AMXX
I recently found a prefab that would be really useful to use in a certain game mode but I got 2 problems with it:
1. Even if It is possible to turn it into a model and spawn it, the based prefab is hollow inside and the are few place that player can jump on like windows baloney,.. so I will have to generating it hitbox manually would be a nightmare to deal with with just amxx if that the case. 2.Since it is prefab, I would have to decompile/create a map and manual add it in. Which would limited amount of maps that the game mode could be played (and high chance it wouldn’t able to compile anyway) TLDR: Is there anyway to generate a prefab from the .rmf/.jmf file with AMXX? |
Re: Generate prefap in the map with AMXX
I think you can convert the prefab to .bsp and then precache the .bsp file and spawn it with AMXX, I guess I saw this getting done before but not sure where I can find it now.
|
Re: Generate prefap in the map with AMXX
What is a "prefab" and why do you think you could spawn a map (.bsp) with AMX Mod X while on a map?
|
Re: Generate prefap in the map with AMXX
Quote:
https://gamebanana.com/mods/5489 |
Re: Generate prefap in the map with AMXX
I dont think you can add into .bsp with amxx, but that model for example, you can add with 5-6 created entities with their mins and maxs xd
|
Re: Generate prefap in the map with AMXX
Yeah, but it would be nightmare to create those small hitboxes via code
|
Re: Generate prefap in the map with AMXX
Maybe walkguard can help you with it
|
Re: Generate prefap in the map with AMXX
You can create a .bsp and just set it as a model for an entity as you would with a .mdl. I think you have to set SOLID_BSP as well, and probably some other things like the proper movetype. The model will actually have proper bsp collision instead of using the bounding box. It may look out of place as the lighting is baked into the .bsp file, instead of being lit by the environment like normal models (may be fixable?). And if I remember correctly, you can't have any entities in the .bsp as it will actually overwrite entities in the map that's being played.
I don't remember many details but I do remember experimenting with this years ago and it kinda worked. There's also a way to make .mdls use hitboxes for collision instead of a boundind box: https://forums.alliedmods.net/showth...65#post2485265 |
Re: Generate prefap in the map with AMXX
1 Attachment(s)
There i have created something similar long time ago and i didn't manage to complete it, you can test it out.
PS: you need to compile the map. |
Re: Generate prefap in the map with AMXX
talking about that?
dev-cs . ru /threads/14936/ not an ad, just require thread, remove link if its restricted |
All times are GMT -4. The time now is 16:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.