[IMG]http://img15.**************/img15/3936/portalsgv.jpg[/IMG]
Credit & Thanks
Credit going to Me
Thanks to alexip121093 for code snippets and Elektramode for post in thread
Features- Teleport players, props, tanks ;D to any position in map
- All clients have different teleports
- Visual and sound effects
Portals a new secret technology appearing in L4D world, use caution can transform your brains to liquid substance

For now it work only in L4D2 but I'm 100% know possible to work on any source engine game (need more code skill and time)
commands:- sm_p, or in chat !p
- for delete portals use command sm_p twice
- !p red teleport red portal, !p blue blue portal if both already exists
- sm_pd admin command to delete all portals
AutoExec Config File: cfg\sourcemod\Portals.cfg
Convars:- sm_portals_model (def=models/props_mall/mall_shopliftscanner.mdl)
// 0 = bots can use portal, 1 = only players
- sm_portals_nobots (def=0)
// 0 = pipe's, gascan any physic prop can use portal, 1 = only players
- sm_portals_noprops (def=1)
// Particle effect
- sm_portals_particle (def=electrical_arc_01_system)
// Sound on error acquired
- sm_portals_sounderror (def=buttons/button11.wav)
// Sound if teleport used
- sm_portals_soundfx (def=ui/pickup_misc42.wav)
// Sound when someone teleported
- sm_portals_soundgo (def=weapons/defibrillator/defibrillator_use.wav)
// Only admin can spawn portals
- sm_portals_admin (def=0)
Quote:
update log [06.06.2010]- add admin cvar sm_portals_admin
- delete force function not work correctly
update log [07.06.2010]- add admin command to delete all portals on map sm_pd
- change default value sm_portals_noprops to 1, props not work correctly
- disable use particle effect and Screen Fade effect for props
update log [09.06.2010]- bugs, maybe fix something
- add function to remove client portal when he disconnect
update log [08.06.2010]- fix jump bug (add block to world brush that thing have valid entindex and model name, but it's still can be so set portal on clear ground)
- change all PrintToChatAll to PrintToChat prevent spam in main chat
update log [15.06.2010]- add alexip121093 code
- another fix for jump bag, now you can't spawn portal if some entity block it
|