AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2]Rainbow Light, Glow and Body (https://forums.alliedmods.net/showthread.php?t=335269)

King_OXO 11-19-2021 20:50

[L4D2]Rainbow Light, Glow and Body
 
2 Attachment(s)
[L4D2]Rainbow Light, Glow and Body

Description:
makes a rainbow light, glow and body.You can change the color speed

Cvar:
Spoiler


Commands:
sm_arco(!arco in chat) to active the rainbow
sm_arcoff(!arcoff in chat) to disable the rainbow

Notes:
Spoiler


Changes:
Spoiler

user2000 11-19-2021 21:02

Re: [L4D2]Rainbow Light, Glow and Body
 
it works :)
but when compiling it throws some errors

Code:

//// rainbow_player.sp
//
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(41) : warning 217: inconsistent indentation (did you mix tabs and spaces?)
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(44) : warning 242: function "Event_PlayerDeath" should return an explicit value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(49) : warning 242: function "Event_RE" should return an explicit value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(59) : warning 242: function "Command_Rainbow" should return an explicit value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(64) : warning 242: function "Command_RainbowOff" should return an explicit value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(69) : warning 209: function has explicit 'int' tag but does not return a value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(69) : warning 209: function has explicit 'int' tag but does not return a value
// Code size:        10136 bytes
// Data size:        3456 bytes
// Stack/heap size:      16468 bytes
// Total requirements:  30060 bytes
//
// 7 Warnings.
//
// Compilation Time: 0.94 sec
// ----------------------------------------

edit: when I deactivate the glow it disappears but I still have color in the body

King_OXO 11-19-2021 21:11

Re: [L4D2]Rainbow Light, Glow and Body
 
Quote:

Originally Posted by user2000 (Post 2763885)
it works :)
but when compiling it throws some errors

Code:

//// rainbow_player.sp
//
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(41) : warning 217: inconsistent indentation (did you mix tabs and spaces?)
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(44) : warning 242: function "Event_PlayerDeath" should return an explicit value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(49) : warning 242: function "Event_RE" should return an explicit value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(59) : warning 242: function "Command_Rainbow" should return an explicit value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(64) : warning 242: function "Command_RainbowOff" should return an explicit value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(69) : warning 209: function has explicit 'int' tag but does not return a value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(69) : warning 209: function has explicit 'int' tag but does not return a value
// Code size:        10136 bytes
// Data size:        3456 bytes
// Stack/heap size:      16468 bytes
// Total requirements:  30060 bytes
//
// 7 Warnings.
//
// Compilation Time: 0.94 sec
// ----------------------------------------

edit: when I deactivate the glow it disappears but I still have color in the body

compile with sourcemod 1.10 stable

Code:

//// rainbow_player.sp
//
// C:\Users\gabrie lfaustino\Desktop\arquivos\sourcemod1\scripting\rainbow_player.sp(41) : warning 217: loose indentation
// Code size:            8484 bytes
// Data size:            3416 bytes
// Stack/heap size:      16384 bytes
// Total requirements:  28284 bytes
//
// 1 Warning.
//
// Compilation Time: 0,44 sec
// ----------------------------------------

Press enter to exit ...


AsphyxiaJLSA 11-25-2021 17:23

Re: [L4D2]Rainbow Light, Glow and Body
 
It would be much better if you get 2 versions, one with all 3, I mean glow, body color, and rainbow, and the other with just glitter and rainbow.

One option of mine is that you add much more speed to shine and to the arc, it looks too slow when I put your complement, I am giving you an opinion I hope it is not annoying.

To my liking I prefer only the glow and the rainbow

It would be much better like this, with this kind of speed: D

King_OXO 11-26-2021 13:53

Re: [L4D2]Rainbow Light, Glow and Body
 
Quote:

Originally Posted by AsphyxiaJLSA (Post 2764333)
It would be much better if you get 2 versions, one with all 3, I mean glow, body color, and rainbow, and the other with just glitter and rainbow.

One option of mine is that you add much more speed to shine and to the arc, it looks too slow when I put your complement, I am giving you an opinion I hope it is not annoying.

To my liking I prefer only the glow and the rainbow

It would be much better like this, with this kind of speed: D

ok man, i put two versions just glow and light, you can change the speed of color changes in rainbow_light.cfg, found in left4dead2/cfg/sourcemod

AsphyxiaJLSA 11-26-2021 14:55

Re: [L4D2]Rainbow Light, Glow and Body
 
1 Attachment(s)
Quote:

Originally Posted by King_OXO (Post 2764396)
ok man, i put two versions just glow and light, you can change the speed of color changes in rainbow_light.cfg, found in left4dead2/cfg/sourcemod

awesome and nice plugin, but they don't save when you do a map transition.

When changing the map it is erased and not saved. If you can figure it out, that would be great: D. By the way, somehow to add much more brightness to the rainbow, it looks very low, compared to the (silver) flashlight which is much taller and more intense.

That's your plugin, I think, it would be great if you add that rainbow intensity from that plugin that I'm adding to this current plugin ,: D to make it look a lot more intense.

L4D2Noob 07-21-2022 17:33

Re: [L4D2]Rainbow Light, Glow and Body
 
2 Attachment(s)
Quote:

Originally Posted by user2000 (Post 2763885)
Code:

//// rainbow_player.sp
//
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(41) : warning 217: inconsistent indentation (did you mix tabs and spaces?)
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(44) : warning 242: function "Event_PlayerDeath" should return an explicit value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(49) : warning 242: function "Event_RE" should return an explicit value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(59) : warning 242: function "Command_Rainbow" should return an explicit value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(64) : warning 242: function "Command_RainbowOff" should return an explicit value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(69) : warning 209: function has explicit 'int' tag but does not return a value
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\rainbow_player.sp(69) : warning 209: function has explicit 'int' tag but does not return a value
// Code size:        10136 bytes
// Data size:        3456 bytes
// Stack/heap size:      16468 bytes
// Total requirements:  30060 bytes
//
// 7 Warnings.
//
// Compilation Time: 0.94 sec
// ----------------------------------------


Here it seems to have compiled on SourceMod 1.11.0.6905 without warnings.
I just had to add in some places:
return 0; and return Plugin_Handled;


All times are GMT -4. The time now is 23:46.

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