Raised This Month: $ Target: $400
 0% 

vexd/xtrafun/engine command help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 04-05-2004 , 07:16   vexd/xtrafun/engine command help
Reply With Quote #1

Recently I made a rocket plugin that shoots out a beam, and when it hits a wall or person, it explodes. The problem is its not exactly a rocket launcher, its like a tracer thats think and colored, and goes at the speed of light. I just used write_byte for TE_BEAM..... and TE_EXPLOSION. I want to learn how to use entitys and vecs so it will slow down using velocity I presume and the ptouch command to see when it hits. Obviosly I would need a balst radius too. Does anyone know any tutorials out there that teach how to use these commands, or can I jsut get some help from you guys? Plz help!
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
DoubleTap
Veteran Member
Join Date: Mar 2004
Location: Harker Heights, TX
Old 04-05-2004 , 09:26  
Reply With Quote #2

Have you looked into the code for fireworks, lasers and such, there may be some things there you can use. I KNOW missiles has all kinds of crazy stuff about vectors...

Vic/DT
__________________
DoubleTap is offline
Send a message via ICQ to DoubleTap
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 04-05-2004 , 10:16   Yes
Reply With Quote #3

I have looked, but even when it is commented, most of it makes no sense to me.... Ive looked in the include files and everything, I undertand only so little
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
DoubleTap
Veteran Member
Join Date: Mar 2004
Location: Harker Heights, TX
Old 04-05-2004 , 10:30  
Reply With Quote #4

I gave up on porting Missiles because it was beyond me... I can get them working but then nobody can pick weapons off the ground... lol, that needs a real coder... good luck man.

Vic/DT
__________________
DoubleTap is offline
Send a message via ICQ to DoubleTap
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 04-05-2004 , 16:17   grr
Reply With Quote #5

well I guess no one wishs to help me out, Ill still keep trying to work on it myself.... although it never works
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
willyumyum
Member
Join Date: Mar 2004
Old 04-05-2004 , 16:48  
Reply With Quote #6

Well, when you're working on stuff you are learning i find that it's best to get one thing at a time to work - and then continue building from there... So, with that being said, what aspect of this plugin do you want to get working first?

~will
__________________
Victory is Mine !!! ~ Stewie Griffin
Visit my server: 65.39.205.73:27017
http://www.bbfclan.net
willyumyum is offline
Send a message via AIM to willyumyum
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 04-05-2004 , 22:51   hmmm
Reply With Quote #7

First I need to know how to make the rocket, I think i use temp events (write_byte). Second when I create the rocket I need to set its velocity, so it shoots through the air at a set speed. I will use the temp event sprite trail using the fire.spr to make the fire behind it. Also, I need to use ptouch I believe to see when it touches another entity. Then finally ill need to create a blast radius, to kill victums. I dont know how to do any of this, and I really really really want to learn! Plz help!
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
BAILOPAN
Join Date: Jan 2004
Old 04-05-2004 , 23:25  
Reply With Quote #8

double tap, check to make sure the pfn_touch forward didn't return PLUGIN_HANDLED that will stop the missles from being pickup-able
__________________
egg
BAILOPAN is offline
DoubleTap
Veteran Member
Join Date: Mar 2004
Location: Harker Heights, TX
Old 04-05-2004 , 23:43  
Reply With Quote #9

BAIL, I know your trying to make an old man learn this stuff... I looked...

pfn_touch doesn't exist... but I am resilient...

public vexd_pfntouch(pToucher, pTouched) {

vexd_pfntouch(ent,0)

vexd_pfntouch(ent,args[6])

vexd_pfntouch(iarg,0)

vexd_pfntouch(iCurrent,0)

I found those similar functions... now before I admit again how stupid I am for code... let me also say again that missiles work fine... I can shoot missile weapons out the ying yang... when the plugin is enabled no other weapon can be picked up off the ground (I can force weapons with arena, but no pickup).

Thanks,

Vic/DT
__________________
DoubleTap is offline
Send a message via ICQ to DoubleTap
ts2do
Senior Member
Join Date: Mar 2004
Old 04-07-2004 , 08:58  
Reply With Quote #10

spawn an info_target entity and set the velocity of it...attach the te_beam to that ... once the info_target origin==target origin then do the explosion thingie
ts2do is offline
Send a message via AIM to ts2do
Reply



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 05:28.


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