AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Generate prefap in the map with AMXX (https://forums.alliedmods.net/showthread.php?t=341808)

Celena Luna 02-13-2023 02:09

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?

JusTGo 02-13-2023 03:32

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.

fysiks 02-14-2023 03:00

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?

Celena Luna 02-14-2023 12:24

Re: Generate prefap in the map with AMXX
 
Quote:

Originally Posted by fysiks (Post 2799487)
What is a "prefab" and why do you think you could spawn a map (.bsp) with AMX Mod X while on a map?

bridges, buildings, vehicles,.. basically a premade structre in VHE

https://gamebanana.com/mods/5489

JocAnis 02-14-2023 13:42

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

Celena Luna 02-14-2023 22:56

Re: Generate prefap in the map with AMXX
 
Yeah, but it would be nightmare to create those small hitboxes via code

JocAnis 02-15-2023 04:34

Re: Generate prefap in the map with AMXX
 
Maybe walkguard can help you with it

klippy 04-25-2023 20:02

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

Natsheh 04-26-2023 08:22

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.

DeMNiX 05-05-2023 04:57

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.