[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/vr/ - Retro Games

Search:


View post   

>> No.10147462 [View]
File: 126 KB, 1008x1329, gruntrandom.jpg [View same] [iqdb] [saucenao] [google]
10147462

>>10147326
>>10147360
You basically just want to go into presets.qc, scroll down to the make_variants function on line 738, and find the monster you want to assign a replacer for. Then you insert the function call of the monster after a random check (two random numbers are stored early in the function in chance and chance2, so use those first). You'll need to mess with the number checks in the same 'bracket' of selections to make whatever you're adding fit.
Also if it's a completely different monster, you'll have to manually change the 'classname' of the monster to the base, non-variant spawn function name for it (i.e. self.classname = "monster_enforcer"; if switching to an enforcer or any of its presets).
>bosses
You'll need to make sure whatever you use doesn't have precaches in its spawn function, and I'm pretty sure bosses still do. You'll need to put the originals in a 'if (self.is_bot == 0)' check and make non-Dumptrucked copies (just precache_model/sound, not precache_body or misc or whatever) of them in worldspawn()... amongst the already extremely excessive list of things that are precached as soon as the map loads.

Probably shit explanation.

Navigation
View posts[+24][+48][+96]