Spawning with different weapons


(CaptainBob1944) #1

Hi again.

This may be part of my old question, but some of you may know a way around it:

I’m trying to replace the Thompson and MP40 for Soldiers with rifles. I know that there are two places to change this, g_client.c and bg_classes.c. I get this working right on my comp, but the client shows a SMG in limbo, yet spawns with the correct rifle. (Again, I’m trying to keep this serverside).

Does this mean that the game looks for bg_classes.c in the cgame dll, and if so, how can I fix this so the limbo menu is appropriate for all users?

Bob


(bacon) #2

Limbo is in the .menu files…


(CaptainBob1944) #3

If I changed it in bg_classes.c it already changes what shows up in limbo, for the server (with a new cgame dll). I want to make it so the limbo soldier weapon options are not dependent on the cgame dll.

If anyone can help with this, or knows a better way, I’m all ears.


(nUllSkillZ) #4

Hi,

First of all Limbo is not in the “.menu”-files.
It’s somewhere in the code.
If I get you ride, you only have to change picture of smg into rifle.
Haven’t found it yet. Searched for limbo in the files. But received (to) many results.
But most of it is done in “cg_”-part.
Will look for this tomorrow.

EDIT:
Found the picture in the “pak0.pk3”:
gfx\limbo\weaponcard1.tga (Mortar, PF, FlameT., FG42, MG42, MP40, STEN, Thompson)
gfx\limbo\weaponcard2.tga (Silenced Luger, Silenced Colt, Luger, Colt, Garand, K43, scoped Garand and scoped K43)

EDIT2:
As far as I can see it’s done in:
File “cg_limbopanel.c”
Function “CG_LimboPanel_GetWeaponCardIconData”
Starting line 2450


(CaptainBob1944) #5

Thx, Ill look into this.

EDIT
Okay that isn’t what I was trying to do, but thx anyway. I’ve already got the limbo pictures working and all, I was just hoping there was a way to have the cgame dll downloaded to the client (because even though the class file is bg, it seems to load in the cgame dll).


(gonzoboi) #6

i think the dll’s are automatically downloaded from the server if you put them inside a pk3 file and the server is ‘pure’ (+sv_pure 1)

I read it from http://rtcwmods.d-e-sign.be//beginner/runfirstmod/index.html


(CaptainBob1944) #7

Ah, I’ve been looking for that link. Thanks gonzoboi!


(CaptainBob1944) #8

http://www.splashdamage.com/index.php?name=pnPHPbb2&file=viewtopic&t=6711

Problem Solved.