Plugin Examples
-
- Posts: 57
- Joined: Fri Nov 19, 2010 7:50 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
-
- Posts: 57
- Joined: Fri Nov 19, 2010 7:50 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
-
- Posts: 57
- Joined: Fri Nov 19, 2010 7:50 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
-
- Posts: 57
- Joined: Fri Nov 19, 2010 7:50 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
-
- Posts: 19
- Joined: Fri Jun 05, 2009 7:21 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
-
- Posts: 7
- Joined: Fri Jun 24, 2011 8:35 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
-
- Posts: 57
- Joined: Fri Nov 19, 2010 7:50 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[quote name='Arcanes_Lutarez' date='20 November 2012 - 07:42 AM' timestamp='1353364937' post='11242']
hello, i need help, i need create a plugin for a build with psi like the pylon, when i create a building with psi in datedit, in the moment that the build die, the psi don't disappear
[/quote]
Download the attachment in this post:
Now add #include "psifield.h" in game.h.
All you need to do is modify UnitCanMakePsiField() and UnitNeedsPsiFieldDestructor() to change the unit ID to the one of your choice. You also need to add the following code to qdp.cpp, inside the InitializePlugin() function:
[php]
JmpCallPatch(PsiProviderCheck1, PsiProviderCheck1_Inject);
JmpCallPatch(PsiProviderCheck2, PsiProviderCheck2_Inject);
JmpCallPatch(PsiProviderCheck3, PsiProviderCheck3_Inject);
JmpCallPatch(PsiProviderCheck4, PsiProviderCheck4_Inject);
JmpCallPatch(PsiProviderCheck5, PsiProviderCheck5_Inject);
[/php]
Since you're not making a warp prism, there should be no need to do anything else apart from this.
hello, i need help, i need create a plugin for a build with psi like the pylon, when i create a building with psi in datedit, in the moment that the build die, the psi don't disappear
[/quote]
Download the attachment in this post:
Now add #include "psifield.h" in game.h.
All you need to do is modify UnitCanMakePsiField() and UnitNeedsPsiFieldDestructor() to change the unit ID to the one of your choice. You also need to add the following code to qdp.cpp, inside the InitializePlugin() function:
[php]
JmpCallPatch(PsiProviderCheck1, PsiProviderCheck1_Inject);
JmpCallPatch(PsiProviderCheck2, PsiProviderCheck2_Inject);
JmpCallPatch(PsiProviderCheck3, PsiProviderCheck3_Inject);
JmpCallPatch(PsiProviderCheck4, PsiProviderCheck4_Inject);
JmpCallPatch(PsiProviderCheck5, PsiProviderCheck5_Inject);
[/php]
Since you're not making a warp prism, there should be no need to do anything else apart from this.
-
- Posts: 7
- Joined: Fri Jun 24, 2011 8:35 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Who is online
Users browsing this forum: No registered users and 1 guest