I was recently checking new mod updates in moddb and i found something very super mega ultra cool interesting, which can be very very usefull for everyone who want to make such thing (look this thread name) in his modification.
This is such awesome that it can't just be 'bypassed' by half-life modding community.
Well i think it works like this :
Check when client is beign initialized. Render map, entities and everything which should be rendered on our background map, run your own precoded VGUI menu.
But do anyone have idea or clues how to "give" it life ?
Cheers.
__________________
настоящий мужчина не нуждается в подписи.
I think this is actually a loaded map with custom menu code. I don't know what the hell is "awesome" here and I prefer static menus - they are robust and load quickly.
__________________
У котёнка мокрый нос и гладенькая шерсть, у него забавный хвост и быстрых лапок шесть. Две задних, две средних и две передних лапы, такая многоножка получилася у папы.
Он ученый — папа мой — зверушек изучает, гуляет по помойкам, ловит крыс и чаек. Две крысы белокрылые и чайки две унылые покрытые пупырчатою кожей лягушат без пёрышек тоскуют и ускакать спешат.
А ещё есть муравей большой размером с гуся он пугает всех зверей, и я его боюся, когда он ковыляет на лапках на своих.
И в двери ударяет, и начинает стих: Я — муравей, воды налей! Не меньше ведра, напиться мне пора!
@up : Yeah, btw the code you have is old, first try xD Whatever, it was first time when im working with fstream, i spent lot of time on chaning gameplay, not really on codding features like that.
Well level_id represents actual background.
If level_id will be 5 then game will load background5.txt.
__________________
настоящий мужчина не нуждается в подписи.
I was recently checking new mod updates in moddb and i found something very super mega ultra cool interesting, which can be very very usefull for everyone who want to make such thing (look this thread name) in his modification.
This is such awesome that it can't just be 'bypassed' by half-life modding community.
Well i think it works like this :
Check when client is beign initialized. Render map, entities and everything which should be rendered on our background map, run your own precoded VGUI menu.
But do anyone have idea or clues how to "give" it life ?
Cheers.
Well I already made this stuff for my mod some time ago, its pretty easy actually.
You dont even have to code anything beside the VGUI menu stuff. You can just do a batch file that loads your background map, then in it you make a trigger_auto or a multi_manager that activates on map load, and in there you change a CVAR, lets say "show_background_menu" from 0 to 1 (using a trigger_changecvar), and you then use that CVAR to trigger your VGUI MENU. Simple as hell and very fast to make. Why are you complicating your life?
I have no idea why I'm complicating my life, on maths lessons I do not make fractions shorter, I was always making stuff in a harder way. Well, maybe harder way = win sometimes ?
I will check out if you hav any screenshot of your work, and I'm making menu concept already.
By the way i cannot decide about something, there is a model renderer by DJShark23Prog but I'm afraid that if i will use paranoia's renderer in my modification i won't be able to use new model renderer which supports up to 48,000 polys and i wanted to make facial animations for mod characters.
@edit : Hell no, you do not have any screenshot's , can you show us an example or this is TOP SECRET ?
__________________
настоящий мужчина не нуждается в подписи.
supra36 писал: I have no idea why I'm complicating my life, on maths lessons I do not make fractions shorter, I was always making stuff in a harder way. Well, maybe harder way = win sometimes ?
I will check out if you hav any screenshot of your work, and I'm making menu concept already.
By the way i cannot decide about something, there is a model renderer by DJShark23Prog but I'm afraid that if i will use paranoia's renderer in my modification i won't be able to use new model renderer which supports up to 48,000 polys and i wanted to make facial animations for mod characters.
@edit : Hell no, you do not have any screenshot's , can you show us an example or this is TOP SECRET ?
Well atm I'm working on the background thing, I only have a small room with nothing inside of it. And the VGUI menu for now is just a copy of VGUI_Weaponpanel from AM source, I have to modify it to make it work as a real in-game menu. So no, I wont show it until its (at least almost) finished, sorry.
BUT! I can tell you that it works perfectly. And about the code itself, just do some research and copy-paste of things from the keypad code, again from AM, there's everything you need to know about VGUIs there, and its really easy stuff.
And no, DJShark's model renderer doesnt work in paranoia. I tried that too, and unfortunately models are viewed inside-out and without lighting, and the textures are either missing or completely screwed
Well i had inside-out bug but it was because i made wrong defines values, like #define STUDIO_NF_UNLIT or #define STUDIO_NF_ALPHA ect. After i set them on 0 it worked one time but i changed sth (idk what exactly) and i have ugly bug now
__________________
настоящий мужчина не нуждается в подписи.