macanah
Quake 2 Mapping Club
Posts: 321
|
Post by macanah on Oct 30, 2018 4:15:32 GMT -5
I am currently messing around with a mod called brazen for q2 - im new to this -- I didnt make the mod i just have its source.
what would i put in this bit of code so this weapon cant be dropped , like the blaster.
/*QUAKED weapon_stroggsubmach(.3 .3 1) (-16 -16 -16) (16 16 16) */ { "weapon_stroggsubmach", "models/g_ssubmach/tris.md2", "models/v_ssubmach/tris.md2", /* icon */ "w_ssubmach", /* pickup */ "Strogg-SubMachinegun", /* tag */ II_STROGG_SUBMACH, /* quant */ 999, /* ammoTag */ 0, IT_WEAPON, 10, /* precache */ "soldier/solatck3.wav" },
|
|
|
Post by knightmare on Oct 30, 2018 14:14:01 GMT -5
In a normal Q2 mod, you'd set its drop function to NULL instead of whatever function it calls there. But it looks like they removed those fields from the table.
You'll probably have to add a special case for that weapon to whatever weapon drop function that mod uses. You could also add a drop function back into the itemlist definition and have the code use it, but that is harder and the entries for ALL items would have to be changed.
Here's the entry for weapon_blaster in the vanilla Q2 GPL source:
/* weapon_blaster (.3 .3 1) (-16 -16 -16) (16 16 16) always owned, never in the world */ { "weapon_blaster", NULL, // pickup function Use_Weapon, NULL, // drop function Weapon_Blaster, "misc/w_pkup.wav", NULL, 0, // pickup model and effect "models/weapons/v_blast/tris.md2", /* icon */ "w_blaster", /* pickup */ "Blaster", 0, // width 0, // quantity NULL, // ammo type IT_WEAPON|IT_STAY_COOP, WEAP_BLASTER, NULL, 0, /* precache */ "weapons/blastf1a.wav misc/lasfly.wav" },
|
|
|
Post by draxi on Nov 8, 2018 1:17:15 GMT -5
Isn't Brazen made by Paril?
|
|
macanah
Quake 2 Mapping Club
Posts: 321
|
Post by macanah on Nov 8, 2018 4:40:19 GMT -5
Yep i think so
I have the mod and source
|
|
macanah
Quake 2 Mapping Club
Posts: 321
|
Post by macanah on Feb 6, 2019 11:54:41 GMT -5
Hi
what files in the quake2 source code control the tab menu? like is used in mods for map voting etc
|
|
|
Post by knightmare on Feb 6, 2019 19:46:32 GMT -5
The in-mod menu in CTF and many mods is handled in p_menu.c, but I've seen some mods like Generations add menus in other files. The file will probably have "menu" somewhere in its name.
|
|