Raised This Month: $32 Target: $400
 8% 

[TF2] PortalMod Gun + Cube v1.0 11/11/2015


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Erreur 500
Senior Member
Join Date: Aug 2012
Location: Paris, France
Plugin ID:
4151
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Play Portal in Team Fortress 2
    Old 04-01-2014 , 04:09   [TF2] PortalMod Gun + Cube v1.0 11/11/2015
    Reply With Quote #1



    Last Change (11/11/2015): Show log, Change : .sp and .smx !




    DESCRIPTIONS

    What is the Portalgun ? The portalgun is a weapon create for the Portal game. It creates portals on wall which permit you to be teleported on the other portal. You keep the same velocity.


    More Information :
    Code:
    			CAN							|					CAN'T
    										|
    - Create portal on any plane wall.						|	- Not allow to create portal in spawn room. 
    - Mustn't wait the bullet end before shoot a new bullet.			|	- TF2 isn't Portal, it's impossible to use func_monitor (Can't see through a portal)
    - If your map is close with player clip, there isn't portal outside.		|	- There is a velocity restriction (max = 1000). 
    - If player stuck, portal are destroyed.					|	- You can't pass through a portal like in Portal.
    - If player stuck, player is TP in front the first portal.			|	- You can't spawn a portal on func_door.
    - Portal can be destroyed by projectile (portalgun_breakable)			|	- You can't spawn portals on prop_dynamic and prop_physics (portalgun_prop).
    - Portal can be destroyed when player dies (portalgun_per_life)			|
    - All player can receive the PortalGun						|






    HOW DOES IT WORKS?

    Player Command:
    HTML Code:
    !portalgun	// Drop portalgun
    Admin Command (root):
    HTML Code:
    portalmod_reset		// Force to reset the mod
    CVARS
    HTML Code:
    portalgun_breakable	<0 or 1> (def: 1)	// Portal can be destroyed by projectiles 
    portalgun_health	<int>	(def: 500)	// Portal health
    portalgun_enable	<0 or 1> (def: 1)	// Enable - disable the plugin
    portalgun_per_life	<0 or 1> (def: 1)	// Destroy player portal when he dies
    portalgun_only_mine	<0 or 1> (def: 0)	// Players can only use their portals
    portalgun_flag	<a or c  or d or e or f or g or h or i or l or m or n or o or p or q or r or s or t> (def: a) // Flag without restriction (b and z are yet include)
    portalgun_prop	<0 or 1> (def: 0)	// Can spawn portal on prop_dynamic and prop_physics?
    portalgun_wall	<0.0 to 1.0> (def: 1.0)	// Pourcentage (1.0 to 0.1) to check if the wall is plane. (0.0 = no check)
    
    portalgun_scout		<0 or 1> (def: 1)	// Can scout receive the portalgun?
    portalgun_sniper	<0 or 1> (def: 0)	// Can sniper receive the portalgun?
    portalgun_soldier	<0 or 1> (def: 0)	// Can soldier receive the portalgun?
    portalgun_demoman	<0 or 1> (def: 0)	// Can demomanreceive the portalgun?
    portalgun_medic		<0 or 1> (def: 0)	// Can medic receive the portalgun?
    portalgun_heavy		<0 or 1> (def: 0)	// Can heavy receive the portalgun?
    portalgun_pyro		<0 or 1> (def: 0)	// Can pyro receive the portalgun?
    portalgun_spy		<0 or 1> (def: 0)	// Can spy receive the portalgun?
    portalgun_engineer	<0 or 1> (def: 0)	// Can engineer receive the portalgun?
    portalgun_game_desc     <0 or 1> (def: 1)	// Change your game description (need steamTools)

    By using CVARs, you will allow players to receive the portalgun if their are in specific class or with flag.
    Maps and my plugin are not perfect, and some time you can be stuck at the portal exit. Some of stuck position can be unstuck by my plugin !stuck. For the other stuck position I'm working on it to find a way.



    How to install ?

    portalmod_gun.smx in tf\addons\sourcemod\plugins
    portalmod_gun.sp in tf\addons\sourcemod\scripting


    Decompress, copy and paste materials-models-sounds files in your server.

    Need to work :
    morecolors.inc
    Tf2 Items (the last snapshot)

    Optional :
    Stuck (highly recommended)
    SteamTools




    KNOW ISSUES

    I need your feedback to fix the issues.
    Issue(s) : None !


    LOGS
    Spoiler
    Attached Files
    File Type: zip portalmod_gun_fastDL_files.zip (1.58 MB, 1295 views)
    File Type: zip portalmod_gun_server_files.zip (1.63 MB, 1566 views)
    File Type: smx portalmod_gun.smx (31.6 KB, 1615 views)
    File Type: sp Get Plugin or Get Source (portalmod_gun.sp - 1372 views - 60.7 KB)
    __________________
    My public creation : PortalMod - Free Duels - Unusual Effects - Particle fireworks - !stuck

    Need private plugin ? We can found an agreement !
    Steam : Erreur 500

    Last edited by Erreur 500; 11-14-2015 at 03:17. Reason: Update
    Erreur 500 is offline
    Erreur 500
    Senior Member
    Join Date: Aug 2012
    Location: Paris, France
    Old 04-01-2014 , 04:11   Re: [TF2] PortalMod (beta) v0.61
    Reply With Quote #2

    PortalMod Cube










    Description:

    This plugin will allow you to spawn a portal companion cube with a choice of 15 skins !
    For that, you just have to use the command : !portalcube

    You can restrict the command by portalcube_flag



    CVars:


    HTML Code:
    portalcube_enable<0 or 1> (def: 1)	// Enable - disable the plugin
    portalcube_flag	<a or c  or d or e or f or g or h or i or l or m or n or o or p or q or r or s or t> (def: -1) // Flag without restriction (b and z are yet include)


    How to install ?

    portalmod_cube.smx in tf\addons\sourcemod\plugins
    portalmod_cube.sp in tf\addons\sourcemod\scripting


    Decompress, copy and paste materials-models files in your server.
    Attached Files
    File Type: sp Get Plugin or Get Source (portalmod_cube.sp - 1835 views - 9.2 KB)
    File Type: zip portalmod_cube_fastDL_files.zip (1.61 MB, 627 views)
    File Type: zip portalmod_cube_server_files.zip (1.69 MB, 701 views)

    Last edited by Erreur 500; 11-11-2015 at 14:36.
    Erreur 500 is offline
    Snaggle
    AlliedModders Donor
    Join Date: Jul 2010
    Location: England
    Old 04-01-2014 , 05:17   Re: [TF2] PortalMod (beta) v0.61
    Reply With Quote #3

    Do you have screenshots or videos of the mod in action? O_o

    This look fairly interesting.
    Snaggle is offline
    Graffiti
    AlliedModders Donor
    Join Date: Aug 2013
    Location: Russia
    Old 04-01-2014 , 06:20   Re: [TF2] PortalMod (beta) v0.61
    Reply With Quote #4

    Give me IP server with PortalMod
    Graffiti is offline
    Oshizu
    Veteran Member
    Join Date: Nov 2012
    Location: Warsaw
    Old 04-01-2014 , 14:26   Re: [TF2] PortalMod (beta) v0.61
    Reply With Quote #5

    2/10 Picture is Civilian Pose
    Spoiler
    __________________
    ...
    Oshizu is offline
    Tony.exe
    SourceMod Donor
    Join Date: Mar 2013
    Location: California
    Old 04-01-2014 , 14:29   Re: [TF2] PortalMod (beta) v0.61
    Reply With Quote #6

    Great mod! Trying it out on my trade server and found some bugs(maybe?).

    *Only select people are able to go through it, don't know who or how (Friend had to rejoin in order to use the portal he was not able to go through before)
    *Portals can only be used one at a time else it will teleport the second person that jumps in at the same time to the opposite location of where the exit portal is facing.
    *Some class or some people are not able to use the gun. Had problems with giving people the gun and they couldn't use it instead they would have a glitched smg on their arm and it fires that instead.
    *Can only be used on certain walls


    Hope that helps! Keep it up!
    Spoiler

    Last edited by Tony.exe; 04-01-2014 at 14:45. Reason: Added pictures
    Tony.exe is offline
    Erreur 500
    Senior Member
    Join Date: Aug 2012
    Location: Paris, France
    Old 04-01-2014 , 14:58   Re: [TF2] PortalMod (beta) v0.61
    Reply With Quote #7

    I did not think to post some screenshots, I will do it.

    Quote:
    Originally Posted by Tony.exe View Post
    Great mod! Trying it out on my trade server and found some bugs(maybe?).

    *Only select people are able to go through it, don't know who or how (Friend had to rejoin in order to use the portal he was not able to go through before)
    *Portals can only be used one at a time else it will teleport the second person that jumps in at the same time to the opposite location of where the exit portal is facing.
    *Some class or some people are not able to use the gun. Had problems with giving people the gun and they couldn't use it instead they would have a glitched smg on their arm and it fires that instead.
    *Can only be used on certain walls
    Thank for your feedback. I wasn't able to try portalmod on a multiplayer server so your first and second bug are possibles. Else all class can use it, but you must have a secondary item enabled, and you can create portal on any plane wall.

    An other issue I find, my function which fix stuck teleported player cannot handle all cases. I will update it.
    __________________
    My public creation : PortalMod - Free Duels - Unusual Effects - Particle fireworks - !stuck

    Need private plugin ? We can found an agreement !
    Steam : Erreur 500

    Last edited by Erreur 500; 04-01-2014 at 15:14.
    Erreur 500 is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 04-01-2014 , 15:05   Re: [TF2] PortalMod (beta) v0.61
    Reply With Quote #8

    ew, there is some major improvements needed in the coding. so many unneeded variables.
    Mitchell is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 04-01-2014 , 17:47   Re: [TF2] PortalMod (beta) v0.61
    Reply With Quote #9

    Code:
    	for(new i=0; i<2; i++)
    		for(new j=0; j<2; j++)
    			if(PortalEnt[i][j] == victim)
    			{
    				Team = i;
    				Type = j;
    			}
    Most of the code can be done way better but good job on the start of it.

    Last edited by Drixevel; 04-01-2014 at 17:50.
    Drixevel is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 04-02-2014 , 00:47   Re: [TF2] PortalMod (beta) v0.61
    Reply With Quote #10

    Unsafe entity handling, hardcoded limits...
    You should add tracehulls.. And maths
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 21:48.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode