Update function table

This commit is contained in:
Federico Cecchetto 2021-08-28 04:42:17 +02:00
parent 93aec8e726
commit e07590a6e5
2 changed files with 22 additions and 22 deletions

View File

@ -302,14 +302,14 @@ namespace scripting
{"visionsetmissilecam", 330}, {"visionsetmissilecam", 330},
{"ambientstop", 331}, {"ambientstop", 331},
{"precachemodel", 332}, {"precachemodel", 332},
{"sub_7ff7de27b670", 333}, {"precacheshellshock", 333},
{"sub_7ff7de281fc0", 334}, {"precacheitem", 334},
{"sub_7ff7de282120", 335}, {"precacheshader", 335},
{"sub_7ff7de282390", 336}, {"precachestring", 336},
{"sub_7ff7de2825f0", 337}, {"precachemenu", 337},
{"initdefaultviewmodelrumbles", 338}, {"precacherumble", 338},
{"sub_7ff7de27b550", 339}, {"precachelocationselector", 339},
{"sub_7ff7de282190", 340}, {"precacheleaderboards", 340},
{"loadfx", 341}, {"loadfx", 341},
{"playfx", 342}, {"playfx", 342},
{"sub_7ff7de275db0", 343}, {"sub_7ff7de275db0", 343},
@ -774,14 +774,14 @@ namespace scripting
{"sub_7ff7de27c140", 32950}, {"sub_7ff7de27c140", 32950},
{"delete", 32951}, {"delete", 32951},
{"setmodel", 32952}, {"setmodel", 32952},
{"sub_7ff7de27c720", 32953}, {"laseraltviewon", 32953},
{"sub_7ff7de27c8b0", 32954}, {"laseraltviewoff", 32954},
{"sub_7ff7de27c9a0", 32957}, {"thermalvisionon", 32957},
{"sub_7ff7de27d190", 32958}, {"thermalvisionoff", 32958},
{"laseraltviewon", 32959}, {"laseraltviewon", 32959},
{"laseraltviewoff", 32960}, {"laseraltviewoff", 32960},
{"setcontents", 32965}, {"setcontents", 32965},
{"makevehiclesolidcapsule", 32966}, {"makeusable", 32966},
{"makeunusable", 32967}, {"makeunusable", 32967},
{"sub_7ff7de273270", 32968}, {"sub_7ff7de273270", 32968},
{"sub_7ff7de273800", 32969}, {"sub_7ff7de273800", 32969},
@ -807,16 +807,16 @@ namespace scripting
{"setclockup", 32989}, {"setclockup", 32989},
{"setvalue", 32990}, {"setvalue", 32990},
{"setwaypoint", 32991}, {"setwaypoint", 32991},
{"sub_7ff7de250930", 32992}, {"setwaypointedgestyle_rotatingicon", 32992},
{"sub_7ff7de27b300", 32993}, {"setcursorhint", 32993},
{"sub_7ff7de27ba30", 32994}, {"sethintstring", 32994},
{"forceusehinton", 32996}, {"forceusehinton", 32996},
{"forceusehintoff", 32997}, {"forceusehintoff", 32997},
{"sub_7ff7de27af40", 32998}, {"makesoft", 32998},
{"sub_7ff7de27b0f0", 32999}, {"makehard", 32999},
{"nullsub_297", 33000}, {"nullsub_297", 33000},
{"sub_7ff7de289400", 33001}, {"startfiring", 33001},
{"sub_7ff7de289740", 33002}, {"stopfiring", 33002},
{"isfiringturret", 33003}, {"isfiringturret", 33003},
{"startbarrelspin", 33004}, {"startbarrelspin", 33004},
{"stopbarrelspin", 33005}, {"stopbarrelspin", 33005},
@ -1299,7 +1299,7 @@ namespace scripting
{"getviewkickscale", 33557}, {"getviewkickscale", 33557},
{"getweaponslistall", 33558}, {"getweaponslistall", 33558},
{"getweaponslistprimaries", 33559}, {"getweaponslistprimaries", 33559},
{"sub_7ff7de242f90", 33560}, {"getnormalizedcameramovement", 33560},
{"giveweapon", 33561}, {"giveweapon", 33561},
{"takeweapon", 33562}, {"takeweapon", 33562},
{"takeallweapons", 33563}, {"takeallweapons", 33563},

View File

@ -93,7 +93,7 @@ namespace scripting::lua
if (values.find(key) == values.end()) if (values.find(key) == values.end())
{ {
return sol::lua_value{}; return sol::lua_value{s, sol::lua_nil};
} }
return convert(s, values.at(key).value); return convert(s, values.at(key).value);