Raised This Month: $ Target: $400
 0% 

TE_BEAMCYLINDER


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Speed!
BANNED
Join Date: Jan 2009
Old 02-12-2009 , 19:42   TE_BEAMCYLINDER
Reply With Quote #1

Im not understanding at all the usage of this...

#define TE_BEAMCYLINDER 21 // cylinder that expands to max radius over lifetime
// coord coord coord (center position) //right, up to here OK
// coord coord coord (axis and radius) // dont know wich i should change to get what i want :S
// short (sprite index) // NP
// byte (starting frame) // how can i use this? i mean i do no the framte rate..
// byte (frame rate in 0.1's) //every time i saw this, this was set "0"
// byte (life in 0.1's) //life? duh?
// byte (line width in 0.1's) // guess i know what it is, but not sure
// byte (noise amplitude in 0.01's) // noise, ok
// byte,byte,byte (color) // simple
// byte (brightness) // simple
// byte (scroll speed in 0.1's) // also, always saw this set on 0
Speed! is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-12-2009 , 19:53   Re: TE_BEAMCYLINDER
Reply With Quote #2

Check this plugin : http://forums.alliedmods.net/showthr...light=frosnade
Arkshine is offline
L//
Senior Member
Join Date: Aug 2008
Location: Not found
Old 02-12-2009 , 20:21   Re: TE_BEAMCYLINDER
Reply With Quote #3

Example use...

Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#define PLUGIN "Test "
#define VERSION "1.0"
#define AUTHOR "L//"

new g_explode

new const sprite_cylinder[] = { "sprites/shockwave.spr" }

public plugin_precache()
{
    g_explode = engfunc(EngFunc_PrecacheModel, sprite_cylinder)
}

public plugin_init() 
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /test", "cylinder")
}

public cylinder(id)
{
    new origin[3]
    get_user_origin(id, origin)
    
    create_cylinder(origin, 550, g_explode, 0, 0, 6, 60, 0, 0, 210, 0, 175, 0)
    create_cylinder(origin, 700, g_explode, 0, 0, 6, 60, 0, 0, 235, 0, 150, 0)
    create_cylinder(origin, 850, g_explode, 0, 0, 6, 60, 0, 15, 255, 15, 100, 0)
}

stock create_cylinder(origin[3], addrad, sprite, startfrate, framerate, life, width, amplitude, red, green, blue, brightness, speed)
{
    message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
    write_byte(TE_BEAMCYLINDER)
    write_coord(origin[0])
    write_coord(origin[1])
    write_coord(origin[2])
    write_coord(origin[0])
    write_coord(origin[1])
    write_coord(origin[2] + addrad)
    write_short(sprite)
    write_byte(startfrate)
    write_byte(framerate)
    write_byte(life)
    write_byte(width)
    write_byte(amplitude)
    write_byte(red)
    write_byte(green)
    write_byte(blue)
    write_byte(brightness)
    write_byte(speed)
    message_end()
}
PD: no test
__________________
L// is offline
Send a message via MSN to L//
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-13-2009 , 07:46   Re: TE_BEAMCYLINDER
Reply With Quote #4

Quote:
Originally Posted by L// View Post
Example use...

Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
 
#define PLUGIN "Test "
#define VERSION "1.0"
#define AUTHOR "L//"
 
new g_explode
 
new const sprite_cylinder[] = { "sprites/shockwave.spr" }
 
public plugin_precache()
{
    g_explode = engfunc(EngFunc_PrecacheModel, sprite_cylinder)
}
 
public plugin_init() 
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /test", "cylinder")
}
 
public cylinder(id)
{
    new origin[3]
    get_user_origin(id, origin)
 
    create_cylinder(origin, 550, g_explode, 0, 0, 6, 60, 0, 0, 210, 0, 175, 0)
    create_cylinder(origin, 700, g_explode, 0, 0, 6, 60, 0, 0, 235, 0, 150, 0)
    create_cylinder(origin, 850, g_explode, 0, 0, 6, 60, 0, 15, 255, 15, 100, 0)
}
 
stock create_cylinder(origin[3], addrad, sprite, startfrate, framerate, life, width, amplitude, red, green, blue, brightness, speed)
{
    message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
    write_byte(TE_BEAMCYLINDER)
    write_coord(origin[0])
    write_coord(origin[1])
    write_coord(origin[2])
    write_coord(origin[0])
    write_coord(origin[1])
    write_coord(origin[2] + addrad)
    write_short(sprite)
    write_byte(startfrate)
    write_byte(framerate)
    write_byte(life)
    write_byte(width)
    write_byte(amplitude)
    write_byte(red)
    write_byte(green)
    write_byte(blue)
    write_byte(brightness)
    write_byte(speed)
    message_end()
}
PD: no test
Why are you using fakemeta ? oh..i see, copy-paste
Here's an example doing that with less code - a stock
http://forums.alliedmods.net/showthr...ighlight=grave
__________________


Last edited by anakin_cstrike; 02-13-2009 at 07:48.
anakin_cstrike is offline
Speed!
BANNED
Join Date: Jan 2009
Old 02-13-2009 , 09:08   Re: TE_BEAMCYLINDER
Reply With Quote #5

Thanks for answering but i cant find what the hell does exacltly change the size. :S
I want it near 2mts high (suposing an CT is 1.80 LOL) but when i change one value it changes in an annoyng way :S
and well, radius like 2 cts
Speed! is offline
L//
Senior Member
Join Date: Aug 2008
Location: Not found
Old 02-13-2009 , 23:38   Re: TE_BEAMCYLINDER
Reply With Quote #6

Quote:
Originally Posted by anakin_cstrike View Post
Why are you using fakemeta ? oh..i see, copy-paste
Here's an example doing that with less code - a stock
http://forums.alliedmods.net/showthr...ighlight=grave
Code:
native engfunc(type,any:...);
... in fakemeta.inc
__________________
L// is offline
Send a message via MSN to L//
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-14-2009 , 07:47   Re: TE_BEAMCYLINDER
Reply With Quote #7

It doesn't matter if you copied or not. But i think it's kinda rubish to use fakemeta just for precache native.

@ Speed!: what exactly do you not understand? you want to create that cylinder above a player?
__________________

anakin_cstrike is offline
Speed!
BANNED
Join Date: Jan 2009
Old 02-14-2009 , 09:54   Re: TE_BEAMCYLINDER
Reply With Quote #8

Quote:
Originally Posted by anakin_cstrike View Post
It doesn't matter if you copied or not. But i think it's kinda rubish to use fakemeta just for precache native.

@ Speed!: what exactly do you not understand? you want to create that cylinder above a player?
yes, but know i solved it in another way. im using a model
Speed! is offline
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 17:05.


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