[FilterScript] Portal Gun
#1

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:
WeaponCountry Rifle
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
Reply
#2

Very well!
Reply
#3

This is unique and well done, 5 stars
Reply
#4

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
Reply
#5

Quote:
Originally Posted by Crayder
View Post
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
Reply
#6

Nicely done
Reply
#7

Not bad, needs a little more improvement.
Reply
#8

Quote:
Originally Posted by Crayder
View Post
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
Reply
#9

Quote:
Originally Posted by RazorGuigo
View Post
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); 
Reply
#10

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); 
Reply
#11

I can't play right now... New video?
Reply
#12

Quote:
Originally Posted by Crayder
Посмотреть сообщение
I can't play right now... New video?
https://www.youtube.com/watch?v=wDBgtBY-cPs
Reply
#13

Update v1.1.0:

- Update for Wall Rotations (3DTryg.inc:GetWallRotation)
Reply
#14

Very nice
Reply
#15

Awesome script.
Reply
#16

What about a team check?
Also an amount check?
Reply
#17

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" ?
Reply
#18

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
Reply
#19

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 
Reply
#20

Update v1.2.0:

- Added functions:
PHP код:
ToggleUseTeamPortalGun(bool:toggle);
IsToggleUseTeamPortalGun(); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)