Forum

> > CS2D > Mods > LaserMod = lasers + geometric optics
Forums overviewCS2D overview Mods overviewLog in to reply

English LaserMod = lasers + geometric optics

17 replies
To the start Previous 1 Next To the start

old Re: LaserMod = lasers + geometric optics

FlooD
GAME BANNED Off Offline

Quote
no u can just play in the serverlol

btw this uses snell's law + fresnel's equations, which means u can do cool shit like total internal reflection and grazing incidence.

old Re: LaserMod = lasers + geometric optics

FlooD
GAME BANNED Off Offline

Quote
user Hador has written
this is a really cool mod! (by far the best Ive seen in years)

But the Server does lag occasionally, and it kicked me out twice...



try again. i set a maximum number of new lua images per frame and i dont lag any more

old Re: LaserMod = lasers + geometric optics

Picias
BANNED Off Offline

Quote
WOW omg
its Different Script
and awesome omg its really cool
i loved it so much

but you have some errors

1) All Weapons can do that
2) the server is SO lag and more Lag

old Re: LaserMod = lasers + geometric optics

FlooD
GAME BANNED Off Offline

Quote
bla fine ill change it so that other weapons are normal

server lag is probably cuz your internet cant handle it.
wait y do lua images take up so much bandwidth anyway?

old unofficial version 1.1.0

Kiffer-Opa
User Off Offline

Quote
Pretty fun, original and awesome idea. I played on your server and this game rocks!
But it comes even better:

I took the code and made some cool improvements.

Here is the code:
http://pastebin.com/4VNrpRgV
(copy the text, save it into a textfile named "lasermod.lua" and drop the file into CS2D/sys/lua)

They are basicly purely graphical improvements.
Here is some sort of a changelog:

unofficial version 1.1.0
ADDED
Beams created by laser now can be red, yellow and blue, too (it depends on the weapon mode of the laser; use "weapon special function" key to change the color)
ADDED
3 second spawn protection for these game modes: Deathmatch, Team Deathmatch, Construction, Zombies! (it tries to rebuild the native CS2D spawn protection)
ADDED
Setting: lm.selfhurt - either allow players to get hurt by their own beams or not (default: false)
ADDED
Setting: lm.meleelaser - either create laser beams with melee weapons or not (default: false)
ADDED
Setting: lm.spawntimer - how long (in frames) the spawn protection lasts (default: 150, can be turned off by setting to 0)
CHANGED
Beams created by guns are thinner and light yellow now
CHANGED
Beam fade time depends on the fire rate of the weapon; the higher the fire rate, the faster the beam disappears
CHANGED
Beam starts now closer from the muzzle of the weapon instead from the body of the player
CHANGED
Grenade Launcher, Rocket Launcher, Flamethrower don't create beams anymore
CHANGED
Knives and other melee weapons don't create beams anymore (by default)
CHANGED
All functions and variables are nested in the table "lm" for better code organization
FIXED
Kills with Mac 10 didn't count as kills and didn't appear in deathlog

Please note: You HAVE TO restart the round after you loaded the script, otherwise it doesn't work.
The "settings" are just variables in the code. You just have to change one line of code to change a setting; it makes it easier to change common things quickly.

BTW: Does any1 know how long the native CS2D spawn protection lasts (in frames)? Just to be sure ...

I wonder why you didn't upload the script to the files section of US. If you grant permission, I upload my fork of this script to US.
In the mean time, just grab the code at:

http://pastebin.com/4VNrpRgV

I would be happy to see my fork on some server soon. Unfortunately, I am currently unable to set up my own server.
To the start Previous 1 Next To the start
Log in to reply Mods overviewCS2D overviewForums overview