Code:
// f*** C++ ISO forbidds allocating this in class declaration
modWeapon_t temporary_weapons_UT4[UT4_MAX_WEAPONS] =
{
// char name[32] float speed vec3_t v
{"NONE" , 0.0f, { 0.0f, 0.0f, 0.0f } },
{"KNIFE" , 0.0f, { 4.0f, 0.0f, 26.0f } },
{"BERETTA" , 0.0f, { 4.0f, 0.0f, 26.0f } },
{"DESERT EAGLE" , 0.0f, { 4.0f, 0.0f, 26.0f } },
{"SPAS-12" , 0.0f, { 0.0f, 0.0f, 5.0f } },
{"MPK5" , 0.0f, { 4.0f, 0.0f, 26.0f } },
{"UMP-45" , 0.0f, { 4.0f, 0.0f, 26.0f } },
{"HK-69" , 1000.0f, { 0.0f, 0.0f, 30.0f } },
{"LR-300" , 0.0f, { 4.0f, 0.0f, 26.0f } },
{"G-36" , 0.0f, { 4.0f, 0.0f, 26.0f } },
{"PSG-1" , 0.0f, { 4.0f, 0.0f, 26.0f } },
{"GRENADE" , 500.0f, { 0.0f, 0.0f, 30.0f } },
{"FLASH" , 500.0f, { 0.0f, 0.0f, 30.0f } },
{"SMOKE" , 500.0f, { 0.0f, 0.0f, 30.0f } },
{"SR-8" , 0.0f, { 0.0f, 0.0f, 5.0f } },
{"AK-103" , 0.0f, { 4.0f, 0.0f, 26.0f } },
{"UNKNOWN" , 0.0f, { 4.0f, 0.0f, 26.0f } },
{"NEGEV" , 0.0f, { 4.0f, 0.0f, 26.0f } },
{"UNKNOWN" , 0.0f, { 4.0f, 0.0f, 26.0f } },
{"M4" , 0.0f, { 4.0f, 0.0f, 26.0f } }
};
memcpy(&weapons_UT4, &temporary_weapons_UT4, sizeof(modWeapon_t) * UT4_MAX_WEAPONS) ;
modWeapon_t temporary_weapons_BQ3[BQ3_MAX_WEAPONS] =
{
{"none" , 0.0f, { 0.0f, 0.0f, 0.0f } },
{"gauntlet" , 0.0f, { 0.0f, 0.0f, 0.0f } },
{"machine" , 0.0f, { 0.0f, 0.0f, 0.0f } },
{"shotgun" , 0.0f, { 0.0f, 0.0f, 0.0f } },
{"grenade" , 700.0f, { 0.0f, 0.0f, 20.0f } },
{"rocket" , 900.0f, { 0.0f, 0.0f, -20.0f } },
{"light" , 0.0f, { 0.0f, 0.0f, 0.0f } },
{"railgun" , 0.0f, { 0.0f, 0.0f, 0.0f } },
{"plasma" , 2000.0f, { 0.0f, 0.0f, 0.0f } },
{"bfg" , 2000.0f, { 0.0f, 0.0f, -20.0f } },
{"" , 0.0f, { 0.0f, 0.0f, 0.0f } },
{"grapple" , 0.0f, { 0.0f, 0.0f, 0.0f } }
};
memcpy(&weapons_BQ3, &temporary_weapons_BQ3, sizeof(modWeapon_t) * BQ3_MAX_WEAPONS) ;
Bookmarks