AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Making Nova (https://forums.alliedmods.net/showthread.php?t=134355)

Gadzislaw007 08-03-2010 17:48

Making Nova
 
Well. I'm searching for an message type which will allows to make nova effect like this from frozing nade. [img]http://t2.gstatic.com/images?q=tbn:SiIidHTO-IjlEM:http://img37.**************/img37/4706/newng4.jpg&t=1[/img]

I defined the origins etc, but still don't know which effect use to make something like that.

GXLZPGX 08-03-2010 18:11

Re: Making Nova
 
Quote:

Originally Posted by Gadzislaw007 (Post 1260758)
Well. I'm searching for an message type which will allows to make nova effect like this from frozing nade. [img]http://t2.gstatic.com/images?q=tbn:SiIidHTO-IjlEM:http://img37.**************/img37/4706/newng4.jpg&t=1[/img]

I defined the origins etc, but still don't know which effect use to make something like that.

It looks more of a sprite than an "effect."

Emp0wer 08-03-2010 18:15

Re: Making Nova
 
Quote:

Originally Posted by Gadzislaw007 (Post 1260758)
Well. I'm searching for an message type which will allows to make nova effect like this from frozing nade.

Well. Maybe try to look at frost nade code? :twisted:
PHP Code:

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

// Frost Grenade: Freeze Blast
create_blast3(const Float:originF[3])
{
    
// Smallest ring
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
    
write_byte(TE_BEAMCYLINDER// TE id
    
engfunc(EngFunc_WriteCoordoriginF[0]) // x
    
engfunc(EngFunc_WriteCoordoriginF[1]) // y
    
engfunc(EngFunc_WriteCoordoriginF[2]) // z
    
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis
    
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis
    
engfunc(EngFunc_WriteCoordoriginF[2]+385.0// z axis
    
write_short(g_exploSpr// sprite
    
write_byte(0// startframe
    
write_byte(0// framerate
    
write_byte(4// life
    
write_byte(60// width
    
write_byte(0// noise
    
write_byte(0// red
    
write_byte(100// green
    
write_byte(200// blue
    
write_byte(200// brightness
    
write_byte(0// speed
    
message_end()
    
    
// Medium ring
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
    
write_byte(TE_BEAMCYLINDER// TE id
    
engfunc(EngFunc_WriteCoordoriginF[0]) // x
    
engfunc(EngFunc_WriteCoordoriginF[1]) // y
    
engfunc(EngFunc_WriteCoordoriginF[2]) // z
    
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis
    
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis
    
engfunc(EngFunc_WriteCoordoriginF[2]+470.0// z axis
    
write_short(g_exploSpr// sprite
    
write_byte(0// startframe
    
write_byte(0// framerate
    
write_byte(4// life
    
write_byte(60// width
    
write_byte(0// noise
    
write_byte(0// red
    
write_byte(100// green
    
write_byte(200// blue
    
write_byte(200// brightness
    
write_byte(0// speed
    
message_end()
    
    
// Largest ring
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
    
write_byte(TE_BEAMCYLINDER// TE id
    
engfunc(EngFunc_WriteCoordoriginF[0]) // x
    
engfunc(EngFunc_WriteCoordoriginF[1]) // y
    
engfunc(EngFunc_WriteCoordoriginF[2]) // z
    
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis
    
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis
    
engfunc(EngFunc_WriteCoordoriginF[2]+555.0// z axis
    
write_short(g_exploSpr// sprite
    
write_byte(0// startframe
    
write_byte(0// framerate
    
write_byte(4// life
    
write_byte(60// width
    
write_byte(0// noise
    
write_byte(0// red
    
write_byte(100// green
    
write_byte(200// blue
    
write_byte(200// brightness
    
write_byte(0// speed
    
message_end()



Seta00 08-03-2010 18:34

Re: Making Nova
 
Quote:

Originally Posted by Emp0wer (Post 1260801)
Well. Maybe try to look at frost nade code? :twisted:

New users should all be like Emp0wer.

Gadzislaw007 08-03-2010 18:40

Re: Making Nova
 
Oh crap, I wasn't looking in good place. ;D
Thanks, sorry for problems.

DarkGod 08-03-2010 18:45

Re: Making Nova
 
Quote:

Originally Posted by Seta00 (Post 1260830)
New users should all be like Emp0wer.

Too bad that Emp0wer isn't new, though. That would've been something!

Emp0wer 08-04-2010 04:56

Re: Making Nova
 
Quote:

Originally Posted by Seta00 (Post 1260830)
New users should all be like Emp0wer.

I'm not new :grrr:, my old account was banned for helping non-steam user.. :twisted:


All times are GMT -4. The time now is 00:12.

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