sourcemod icon indicating copy to clipboard operation
sourcemod copied to clipboard

Feature request: Expose ICellArray to Extensions

Open Pelipoika opened this issue 7 years ago • 5 comments

  • What is your end goal, or what are you trying to accomplish?

I want to expose https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/nav_pathfind.h#L751 (CollectSurroundingAreas) as a native to SourceMod plugins like:

ArrayList array = CreateArray(); CollectSurroundingAreas(array, ....)

and the extension would then fill the array with the surrounding areas.

  • Why is this necessary, or what benefit do you see with it?

It would be a massive pain in the ass to expose all the functions that are used in CollectSurroundingAreas to SourcePawn so you could manually construct the function in SourcePawn, instead of just simply being able to fill an array.

Pelipoika avatar Nov 04 '17 23:11 Pelipoika

still need this.......

arthurdead avatar Mar 29 '21 20:03 arthurdead

Being able to extract the ICellArray/CellArray freely from a handle would be nice too. I'm currently doing hacky stuff to get g_pCoreIdent so ReadHandle works cleanly (g_pCoreIdent being exported in Windows dlls would be cool 👀).

rtldg avatar Jul 22 '21 06:07 rtldg

Being able to extract the ICellArray/CellArray freely from a handle would be nice too. I'm currently doing hacky stuff to get g_pCoreIdent so ReadHandle works cleanly (g_pCoreIdent being exported in Windows dlls would be cool 👀).

did you get it, want to extend some native for the core handle type

BoneTM avatar Mar 04 '22 08:03 BoneTM

did you get it, want to extend some native for the core handle type

yeah, this is a link to the file where I grab g_pCoreIdent and then ctrl+f how I used it https://github.com/rtldg/sm_closestpos/blob/f113dd3acdeae93caa76009896a48e42179c0fc1/extension.cpp#L132-L185

rtldg avatar Mar 04 '22 09:03 rtldg

did you get it, want to extend some native for the core handle type

yeah, this is a link to the file where I grab g_pCoreIdent and then ctrl+f how I used it https://github.com/rtldg/sm_closestpos/blob/f113dd3acdeae93caa76009896a48e42179c0fc1/extension.cpp#L132-L185

ty so much, really need this, thanks again, and thanks for the answer so damn fast

BoneTM avatar Mar 04 '22 09:03 BoneTM