Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, henrybane), 1,096 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
LASER Particle [C-SCRIPT] #283430
08/07/09 18:28
08/07/09 18:28
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Hello. Can any one please give me an example of laser (I whant it for aiming in 3rd person shooter), that will start from defined vertex on gun and will collide with models and level blocks (woun't go through them).


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: LASER Particle [C-SCRIPT] [Re: 3run] #283435
08/07/09 18:44
08/07/09 18:44
Joined: Jun 2008
Posts: 402
Germany
S
sebbi91 Offline
Senior Member
sebbi91  Offline
Senior Member
S

Joined: Jun 2008
Posts: 402
Germany
no problem I would suggest to you the Laserweapon from the ratsoft "waffentutorial"
But its german!

http://www.rat-soft.de/dload/Waffentutorial.pdf

look at:"Energiewaffen" at page 26,27 and 28
it shows you an thunderlike weapon that burns !
don't know if this is what your looking for,but i think it could be easy modify!


3D-Gamestudio A8 - Commercial
Re: LASER Particle [C-SCRIPT] [Re: sebbi91] #283436
08/07/09 18:46
08/07/09 18:46
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Yeah this tutorial is great

@sebbi warum schreibst du nciht gleich in deutsch wenn du ein deutsches tutorial gibst wink

Re: LASER Particle [C-SCRIPT] [Re: Rei_Ayanami] #283439
08/07/09 18:58
08/07/09 18:58
Joined: Jun 2008
Posts: 402
Germany
S
sebbi91 Offline
Senior Member
sebbi91  Offline
Senior Member
S

Joined: Jun 2008
Posts: 402
Germany
ich glaub er spricht leider kein deutsch!^^
ist meiner Meinung nach aber eins der besten Tutorials überhaubt!
Eine englische Variante wäre vieleicht nicht schlecht ^^


Last edited by sebbi91; 08/07/09 18:59.

3D-Gamestudio A8 - Commercial
Re: LASER Particle [C-SCRIPT] [Re: sebbi91] #283458
08/07/09 20:33
08/07/09 20:33
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
The problem is, that I do not know german frown And I alredy have this tutorial. I do not need lasergun... only laser for aiming!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: LASER Particle [C-SCRIPT] [Re: 3run] #283471
08/07/09 22:08
08/07/09 22:08
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline
Serious User
jigalypuff  Offline
Serious User

Joined: Nov 2005
Posts: 1,007
Would one of our german members be good enough to translate this?


Why does everyone like dolphins? Never trust a species which smiles all the time!
Re: LASER Particle [C-SCRIPT] [Re: jigalypuff] #283496
08/08/09 00:28
08/08/09 00:28
Joined: Oct 2008
Posts: 681
Germany
Ayumi Offline
User
Ayumi  Offline
User

Joined: Oct 2008
Posts: 681
Germany
Maybe;)
Give me some more time and i will translate it.

Re: LASER Particle [C-SCRIPT] [Re: Ayumi] #283527
08/08/09 09:44
08/08/09 09:44
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
That will be just great! smile But what about a laser particle for now?! I realy need it...


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: LASER Particle [C-SCRIPT] [Re: 3run] #283531
08/08/09 10:03
08/08/09 10:03
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
The following code assumes that the direction of the weapon is the same as the default view's (camera).
Furthermore you need a small bitmap which is used for your laser beam:
Code:
bmap laserAim_map = "myLaserAimBitmap.bmp";

var laserAim_status = 0;

function effect_LaserAim()
{
	my.alpha = 60;
	my.bmap = laserAim_map;
	my.move = on;
	my.bright = on;
	my.beam = on;		// if beam doesn't look good, try my.streak = on; instead
	my.lifespan = 1;
}

function toggle_LaserAim()
{
	laserAim_status = !laserAim_status;
	
	while(laserAim_status)
	{
		// Assumption: laser_pos is a vector which represents the current position
		// of the laser beam start
		
		vec_set(temp,vector(10000,0,0)); // length of your laser beam
		vec_rotate(temp,camera.pan);
		
		effect(effect_LaserAim,1,laser_pos,temp);
		
		wait(1);
	}
}



NOTE: not tested, not sure if it works

Re: LASER Particle [C-SCRIPT] [Re: 3run] #283532
08/08/09 10:06
08/08/09 10:06
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
use the draw_line3d funcvtion. it makes a laser . read in the manual . everything is tghere explained.

EDIT: oh sorry i´ve overlooked the [c-script] . then don´t use my way. use the ones above me.

Last edited by alibaba; 08/08/09 10:08.

Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Page 1 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1