Raised This Month: $51 Target: $400
 12% 

Generate prefap in the map with AMXX


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 02-13-2023 , 02:09   Generate prefap in the map with AMXX
Reply With Quote #1

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?
__________________
My plugin:

Last edited by Celena Luna; 02-13-2023 at 02:17.
Celena Luna is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 02-13-2023 , 03:32   Re: Generate prefap in the map with AMXX
Reply With Quote #2

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.
__________________
JusTGo is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-14-2023 , 03:00   Re: Generate prefap in the map with AMXX
Reply With Quote #3

What is a "prefab" and why do you think you could spawn a map (.bsp) with AMX Mod X while on a map?
__________________
fysiks is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 02-14-2023 , 12:24   Re: Generate prefap in the map with AMXX
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
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
__________________
My plugin:

Last edited by Celena Luna; 02-14-2023 at 12:28.
Celena Luna is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 02-14-2023 , 13:42   Re: Generate prefap in the map with AMXX
Reply With Quote #5

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
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 02-14-2023 , 22:56   Re: Generate prefap in the map with AMXX
Reply With Quote #6

Yeah, but it would be nightmare to create those small hitboxes via code
__________________
My plugin:
Celena Luna is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 02-15-2023 , 04:34   Re: Generate prefap in the map with AMXX
Reply With Quote #7

Maybe walkguard can help you with it
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 04-25-2023 , 20:02   Re: Generate prefap in the map with AMXX
Reply With Quote #8

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
__________________
klippy is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 04-26-2023 , 08:22   Re: Generate prefap in the map with AMXX
Reply With Quote #9

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.
Attached Files
File Type: zip Arena.zip (25.9 KB, 37 views)
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 04-26-2023 at 08:36.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
DeMNiX
Veteran Member
Join Date: Nov 2011
Location: Russia
Old 05-05-2023 , 04:57   Re: Generate prefap in the map with AMXX
Reply With Quote #10

talking about that?
dev-cs . ru /threads/14936/

not an ad, just require thread, remove link if its restricted
__________________
My channel with test codes
https://www.youtube.com/user/demnix03

Zombie Riot [Scenario & bots-zombie 11.11.2023]
https://youtu.be/8ZZan-aq2sc

Last edited by DeMNiX; 05-05-2023 at 04:57.
DeMNiX is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode