What's new
  • Howdy, Guest!

    We have issued a forced password reset on all user accounts, meaning you will not be able to login until this process is complete. Instructions will be displayed when you login with your previous credentials, however if for any reason you do not have access to your associated email address, you will need to contact us at [email protected].

    For more information, please read this Important Announcement

    Thank you for being awesome!

Discussion MW3 - How can I dump model names for current map?

H

HJr

Enthusiast
Messages
5
Reaction score
2
Points
55
Sin$
7
I have found an old Entity spawning tool for MW3 (https://www.se7ensins.com/forums/threads/release-simple-entity-tool.1197807/) updated the offsets (thanks to DeathRGH PasteBin) and it works fine.

Now I want to add a function that gets all the current map model names so you can’t select and spawn a non existent model.
Something like-
string[] Models = null;
switch(Dvar_GetString("ui_mapname"))
{
case "mp_plaza2":
Models = GetModels(Map);
foreach (string model in Models)
ModelsComboBox.Items.Add(model);
break;
case "mp_mobalrig ":
Models = GetModels(Map);
foreach (string model in Models)
ModelsComboBox.Items.Add(model);
break;
default:
break;
}


Can someone please point me in the right direction to get me started? Thank you
 
Last edited:
Top Bottom
Login
Register