Portal Gun -
AbyssMorgan - 01.04.2017
Hello, I would like to present you the Portal Gun Script
Video:
https://www.youtube.com/watch?v=pHGUVNh9y3c
https://www.youtube.com/watch?v=wDBgtBY-cPs
Download:
PortalGun.inc
3DTryg.inc Thread
ColAndreas Plugin
Installation:
PHP Code:
#include <ADM/3DTryg>
#include <PortalGun>
Functions:
PHP Code:
TogglePrivatePortalGun(bool:toggle);//default: false
bool:IsTogglePrivatePortalGun();
TogglePortalGunForAll(bool:toggle); //default: true
bool:IsTogglePortalGunForAll();
TogglePortalGunForPlayer(playerid,bool:toggle); //default: false
bool:IsTogglePortalGunForPlayer(playerid);
Float:GetPortalGunSpeed(playerid);
SetPortalGunSpeed(playerid,Float:speed);
Float:GetPortalGunStreamDistance();
SetPortalGunStreamDistance(Float:streamdistance);
ForceOpenPortalGunRing(playerid,portal_id,Float:ox,Float:oy,Float:oz,Float:tx,Float:ty,Float:tz,worldid,interiorid);
ForceClosePortalGunRing(playerid);
ToggleUseTeamPortalGun(bool:toggle);
IsToggleUseTeamPortalGun();
Activation:
PHP Code:
Weapon: Country Rifle
Y - Change Ring
Notice:
Filterscript not exist because filterscripts have limits.
This has been replaced by include, having automatic installation, efficient GameMode/FilterScript.
Non-Registered Users:
Bug Report
Re: Portal Gun -
BarBePie - 01.04.2017
Very well!
Re: Portal Gun -
JustMe.77 - 01.04.2017
This is unique and well done, 5 stars
Re: Portal Gun -
Crayder - 01.04.2017
Na, it should use CA_RayCastLineAngle for rotation.
And the teleportation should be instant with no freeze.
And you should get the player's velocity and rotate it with the rotation between the rings and apply it after teleporting.
and and and and and and
Re: Portal Gun -
AbyssMorgan - 01.04.2017
Quote:
Originally Posted by Crayder
Na, it should use CA_RayCastLineAngle for rotation.
And the teleportation should be instant with no freeze.
And you should get the player's velocity and rotate it with the rotation between the rings and apply it after teleporting.
and and and and and and
|
Ok, I'll take care of next update
Re: Portal Gun -
Roozevelt - 02.04.2017
Nicely done
Re: Portal Gun -
Variable™ - 02.04.2017
Not bad, needs a little more improvement.
YOU DUDE! -
RazorGuigo - 02.04.2017
Quote:
Originally Posted by Crayder
Na, it should use CA_RayCastLineAngle for rotation.
And the teleportation should be instant with no freeze.
And you should get the player's velocity and rotate it with the rotation between the rings and apply it after teleporting.
and and and and and and
|
I was going to suggest the same! Hehe
But also, I think more of now increase the speed of the portal gun
Re: YOU DUDE! -
AbyssMorgan - 02.04.2017
Quote:
Originally Posted by RazorGuigo
I was going to suggest the same! Hehe
But also, I think more of now increase the speed of the portal gun
|
PHP Code:
SetPortalGunSpeed(playerid,Float:speed);
Re: Portal Gun -
AbyssMorgan - 02.04.2017
Update v1.0.1:
- Increase default speed 25.0 -> 70.0
- Close ring OnPlayerDisconnect
- Disable freezing after teleporting
- Effect for Velocity
- Fix Hook:OnPlayerEnterDynamicArea
- Rotations Update
- Fix random teleporting after shot
- Added functions:
PHP Code:
Float:GetPortalGunStreamDistance();
SetPortalGunStreamDistance(Float:streamdistance);
ForceOpenPortalGunRing(playerid,portal_id,Float:ox,Float:oy,Float:oz,Float:tx,Float:ty,Float:tz,worldid,interiorid);
Re: Portal Gun -
Crayder - 02.04.2017
I can't play right now... New video?
Re: Portal Gun -
AbyssMorgan - 02.04.2017
Quote:
Originally Posted by Crayder
I can't play right now... New video?
|
https://www.youtube.com/watch?v=wDBgtBY-cPs
Re: Portal Gun -
AbyssMorgan - 05.04.2017
Update v1.1.0:
- Update for Wall Rotations (3DTryg.inc:GetWallRotation)
Re: Portal Gun -
Sh22 - 05.04.2017
Very nice
Re: Portal Gun - Astralis - 05.04.2017
Awesome script.
Re: Portal Gun -
Crystallize - 12.04.2017
What about a team check?
Also an amount check?
Re: Portal Gun -
AbyssMorgan - 12.04.2017
Quote:
Originally Posted by Crystallize
What about a team check?
Also an amount check?
|
1. Hmm, need team support. #IMPROVE
Currently only available option is:
PHP код:
TogglePrivatePortalGun(bool:toggle);
bool:IsTogglePrivatePortalGun();
2. What about "amount check" ?
Re: Portal Gun -
Crystallize - 12.04.2017
Quote:
Originally Posted by AbyssMorgan
1. Hmm, need team support. #IMPROVE
Currently only available option is:
PHP код:
TogglePrivatePortalGun(bool:toggle);
bool:IsTogglePrivatePortalGun();
2. What about "amount check" ?
|
Like you purchase only one time and you can use it only one time not more than that instead of wasting time to script
Re: Portal Gun -
AbyssMorgan - 12.04.2017
Quote:
Originally Posted by Crystallize
Like you purchase only one time and you can use it only one time not more than that instead of wasting time to script
|
PHP код:
TogglePortalGunForPlayer(playerid,true);
GivePlayerWeapon(playerid,33,1);
SetPlayerAmmo(playerid,33,ammo);
//give player money
Re: Portal Gun -
AbyssMorgan - 13.04.2017
Update v1.2.0:
- Added functions:
PHP код:
ToggleUseTeamPortalGun(bool:toggle);
IsToggleUseTeamPortalGun();