Post by Abhinash ( Bboy NeO ) on Oct 20, 2015 4:56:05 GMT
Hello .
Today . I share with you the process on how to change ring effect colour of Infection Grenade .
Or make different colour for Three different rings .
So , lets start .
Go to your Scripting folder and find zombie_plague40.sma .
Open it with Notepad++ or your favourite Text Editor .
Then press CTRL+F in your keyboard .
And enter this in the find BOX -
After getting it . Scroll a bit and see if you get this Paragraph -
Below that find this -
Yes came to right place .
Just change the colour according to your wish or Customize the colour which you want .
To change / customize colour according to your wish , Yoou should edit only in these parts -
Ok . We have seen that there are three rings effects of Infection Grenades . This changes happens to the middle / smallest ring effect of Infection Grenade .
To do the rest two . Just scroll a bit and find -
As I said above to change the colour you should only edit this part -
So you edit the above part to change the colour of the Medium Ring or the Ring effect between the Three Rings .
Now .
To change the colour of the Largest ring effect / the ring effect part which you see first .
Scroll down a bit after the Medium ring effect code and find this -
For changing the colour of the Largest ring effect . Just edit part -
Note . To change the colours just enter the value of RGB colours inside the Brackets ( ) .
Dont edit anything else . Because I am not going to take risk .
Note . To the the colour of different grenades . Finding this part is these Must -
To change the colour of Fire Grenade find -
For Frost Grenade . Find this part -
And for Infection Grenade find this part first and then edit -
I hope you All Understood .
Zmd94 and LegendOfWarrior please tell me if any mistake is there in my Tutorial .
Thanks for Understanding .
Today . I share with you the process on how to change ring effect colour of Infection Grenade .
Or make different colour for Three different rings .
So , lets start .
Go to your Scripting folder and find zombie_plague40.sma .
Open it with Notepad++ or your favourite Text Editor .
Then press CTRL+F in your keyboard .
And enter this in the find BOX -
// Infection Bomb: Blast
After getting it . Scroll a bit and see if you get this Paragraph -
// Smallest ring
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_BEAMCYLINDER) // TE id
engfunc(EngFunc_WriteCoord, originF[0]) // x
engfunc(EngFunc_WriteCoord, originF[1]) // y
engfunc(EngFunc_WriteCoord, originF[2]) // z
engfunc(EngFunc_WriteCoord, originF[0]) // x axis
engfunc(EngFunc_WriteCoord, originF[1]) // y axis
engfunc(EngFunc_WriteCoord, originF[2]+385.0) // z axis
write_short(g_exploSpr) // sprite
Below that find this -
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(250) // green
write_byte(0) // blue
write_byte(200) // brightness
write_byte(0) // speed
message_end()
Yes came to right place .
Just change the colour according to your wish or Customize the colour which you want .
To change / customize colour according to your wish , Yoou should edit only in these parts -
write_byte(0) // red
write_byte(250) // green
write_byte(0) // blue
Ok . We have seen that there are three rings effects of Infection Grenades . This changes happens to the middle / smallest ring effect of Infection Grenade .
To do the rest two . Just scroll a bit and find -
// Medium ring
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_BEAMCYLINDER) // TE id
engfunc(EngFunc_WriteCoord, originF[0]) // x
engfunc(EngFunc_WriteCoord, originF[1]) // y
engfunc(EngFunc_WriteCoord, originF[2]) // z
engfunc(EngFunc_WriteCoord, originF[0]) // x axis
engfunc(EngFunc_WriteCoord, originF[1]) // y axis
engfunc(EngFunc_WriteCoord, originF[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(250) // green
write_byte(0) // blue
write_byte(200) // brightness
write_byte(0) // speed
message_end()
As I said above to change the colour you should only edit this part -
write_byte(0) // red
write_byte(250) // green
write_byte(0) // blue
So you edit the above part to change the colour of the Medium Ring or the Ring effect between the Three Rings .
Now .
To change the colour of the Largest ring effect / the ring effect part which you see first .
Scroll down a bit after the Medium ring effect code and find this -
// Largest ring
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
write_byte(TE_BEAMCYLINDER) // TE id
engfunc(EngFunc_WriteCoord, originF[0]) // x
engfunc(EngFunc_WriteCoord, originF[1]) // y
engfunc(EngFunc_WriteCoord, originF[2]) // z
engfunc(EngFunc_WriteCoord, originF[0]) // x axis
engfunc(EngFunc_WriteCoord, originF[1]) // y axis
engfunc(EngFunc_WriteCoord, originF[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(250) // green
write_byte(0) // blue
write_byte(200) // brightness
write_byte(0) // speed
message_end()
For changing the colour of the Largest ring effect . Just edit part -
write_byte(0) // red
write_byte(250) // green
write_byte(0) // blue
Note . To change the colours just enter the value of RGB colours inside the Brackets ( ) .
Dont edit anything else . Because I am not going to take risk .
Note . To the the colour of different grenades . Finding this part is these Must -
To change the colour of Fire Grenade find -
// Fire Grenade: Fire Blast
create_blast2(const Float:originF[3])
{
For Frost Grenade . Find this part -
// Frost Grenade: Freeze Blast
create_blast3(const Float:originF[3])
{
And for Infection Grenade find this part first and then edit -
// Infection Bomb: Blast
create_blast(const Float:originF[3])
{
I hope you All Understood .
Zmd94 and LegendOfWarrior please tell me if any mistake is there in my Tutorial .
Thanks for Understanding .