baso88 / SC_AngelScript

Sven Co-op AngelScript documentation, tutorials, sample code and tools
41 stars 4 forks source link

Add way of getting custom model replacements like FindSoundReplacementSample() #71

Open incognico opened 6 years ago

incognico commented 6 years ago

Add way of getting custom model replacements analog to FindSoundReplacementSample().

For example:

string FindModelReplacement(CBaseEntity@ pEntity, const string& in szModelName) const

Finds the model replacement file/path for the given entity and model. If the the model is replaced, it will return the replacement model file/path instead. Otherwise, szModelName is returned.