* Thanks to @Daegaladh! * Originial pull request: #2395
This reverts commit 965edbf47d5044e29c011c621f5129008c85b7aa.
* Migrated script.c to C++