Zet0rz / nzombies

A GM13 Nazi Zombies style (WIP) gamemode
GNU General Public License v3.0
73 stars 79 forks source link

Please help #588

Open SoMuchNope opened 6 years ago

SoMuchNope commented 6 years ago

So, I've been messing around with LUA, and I can't get PaP names to work (using addpapname). Can someone help?

DjNathann commented 6 years ago

Did you add the addpapname in the weapons lua or in the gamemode lua?

SoMuchNope commented 6 years ago

@DjNathann Map LUA? Should it go somewhere else?

SoMuchNope commented 6 years ago

@DjNathann Alright, maybe give me a reference as to how it should be structured, and where it should go?

minin43 commented 6 years ago

Here. Go to this file:

nzombies/gamemodes/nzombies/gamemode/display/sh_papnames.lua

What you'll see a list of the default weapon PaP names. If you want to change them, you're more than welcome to. If you want to add some in yourself, follow the format that you see.

The format: ["weapon_class"] = "PaP Name",

Additionally, at the bottom, you're provided a function you can run ANYWHERE on SERVER code to do the same thing: AddPackAPunchName(class, papname) where "class" and "papname" are the same as what I described above.

SoMuchNope commented 6 years ago

@minin43 Holy Sh*t man, thank you, I've been getting myself so frustrated with this. :-)