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.
I need your feedback to fix the issues.
Issue(s) : None !
LOGS
Spoiler
Code:
v 1.0
Fix error when you use cvar portalgun_flag.
Fix the function that check if client can receive the portalgun (now checks flags + class + team).
Doesn't allow portals on func_door.
Add cvar portalgun_wall, a pourcentage to check if wall is plane.
Add cvar portalgun_prop to allow portals on prop_dynamic and prop_physics.
v 0.8.0 (beta)
- Graphic fixes:
- Fix portalgun skin that enter in conflict when weapon switch.
- Fix graphique bug: weapon skin on the center of player screen when you switch weapon to portalgun.
- Teleportation fixes:
- Fix player stuck in ceiling due to portal with sky direction.
- Fix player stuck in ceiling due to vertical portal next to the ceiling.
- !Stuck plugin is now not an obligation to use (but highly recommended)!
- Fix a server crash due to a random int call when player is next to a open spawn door (Strange isn't it ?! O.o)
- And others fixes.
- Plugin name has changed to portalmod_gun.
- All Cvar prefix has changed to portalgun instead of portalmod.
- Add command !portalgun which give portalgun to player.
- Add CVar portalgun_only_mine to restrict portal for their owner.
- Update sound files:
- Change location folder.
- Reduce place and DL time: convert all .wav to .mp3
Change max speed due to teleportation to 1000.
v 0.7.3 (beta)
- morecolors.inc isn't needed.
- SteamTools is now optional.
- Include stuck.
- Remove translation file.
- Remove Cookie pref.
- Remove Chell selection system.
- Remove CVAR sm_portalgun.
- Rewrite plugin structure.
- Fix invalid particle warning, when a portal is destroyed.
- Entity are secured by reference.
- Add sound and animation, when your portal are destroyed by someone.
- Change velocity limit : 500 to 750.
- PortalGun can be now gave to everyone.
- Add CVAR to give flag immunity : portalmod_flag
- Add CVAR to destroy portals when player die: portalmod_per_life
- Add 9 CVAR to restrict portalgun per class : portalmod_scout, portalmod_sniper, portalmod_soldier, portalmod_demoman, portalmod_medic, portalmod_heavy, portalmod_pyro, portalmod_spy, portalmod_engineer.
- Plugin need less memory and are more stable.
v 0.6.3 (beta)
- You can't create portal in spawn room.
- Fix cvar portalmod_enable "0".
- Fix an issue went a player is spectator and prevent player to be teleported.
v 0.6.2 (beta)
- Fix error when force to give the portalgun to an invalid player.
- Fix error which can appear when there are two players.
- Fix error which can appear when player disconnects.
- Fix error which can appear when player try to fire.
- Fix portals which are still enabled when player disconnected.
- Fix error which appear when player receive the portalgun and haven't a secondary weapon.
- Fix detection of player stuck, now some players can use portals at the same time.
- Fix an infinite loop which can appear when a player is spawn in a wall or prop, now destroy the bad portal.
- Fix error which can appear when player go to spectator.
- Fix skin weapon on screen, now all class can have the protalgun.
- Fix Chell selection.
- Add more securities.
v 0.6.1 (beta)
Initial
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.
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
I did not think to post some screenshots, I will do it.
Quote:
Originally Posted by Tony.exe
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.