C++ metamod dll into amxx plugin?
I have the source of a metamod dll with alot of neat features, is there a way to convert that code to use one specific thing as a amxx plugin?
(the plugin is tfc tech, the technology is sticky pipebombs) |
Re: C++ metamod dll into amxx plugin?
Yes, you can rewrite code from C++ to Pawn. There is no "converter", it must be done manually.
|
Re: C++ metamod dll into amxx plugin?
If I just leave a few snippets from tfc tech (C++), can someone port some features to pawn?
PHP Code:
|
Re: C++ metamod dll into amxx plugin?
A full and not tested example would be something like :
Though I don't know about PlayerHasTech(). There is probably one native for that. [Edit : see #10] |
Re: C++ metamod dll into amxx plugin?
PHP Code:
Code:
bool CTech::PlayerHasTech(int index1, int index2, edict_t *pPlayer) |
Re: C++ metamod dll into amxx plugin?
I don't know much about TFC, but a pipebomb is a weapon already existing in TFC ? If so and If I understand by default you throw it on the ground but with this code, it can be stickied on the wall or a player, right ? I have to search a native to check if you use this weapon so.
|
Re: C++ metamod dll into amxx plugin?
yes, the pipebomb is an ammo, from the piplauncher (cant remember the name) only [under normal circumstances] available to the class TFC_PC_DEMOMAN normally the pipebomb would continue moving around until it finally settled, with this mod it would stick to whatever it lands on (player or wall)
|
Re: C++ metamod dll into amxx plugin?
Ok I tried my code ( not update here yet ) It works for the player part, now it doesn't work with worldspawn/wall. I'm checking...
|
Re: C++ metamod dll into amxx plugin?
ahh, your amazing arkshine :) you should TOTALLY submit this as a new plugin, I KNOW im not the only person who could use this as a standalone plugin :)
your a hero arkshine |
Re: C++ metamod dll into amxx plugin?
Here. Tested and it works as expected :
Code:
|
| All times are GMT -4. The time now is 15:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.