|
| 1 | +# 🤺 effects |
| 2 | + |
| 3 | +## Functions: |
| 4 | + |
| 5 | +### draw\_screen\_effect |
| 6 | + |
| 7 | +`effects.draw_screen_effect(c_material* material,x,y,w,h):` <mark style="color:purple;">`void`</mark> |
| 8 | + |
| 9 | +| Name | Type | |
| 10 | +| ------- | ----- | |
| 11 | +| x/y/w/h | float | |
| 12 | + |
| 13 | +### dispatch\_effect |
| 14 | + |
| 15 | +`effects.dispatch_effect(std::string effect, origin):` <mark style="color:purple;">`void`</mark> |
| 16 | + |
| 17 | +| Name | Type | |
| 18 | +| ------ | ----------- | |
| 19 | +| origin | c\_vector3d | |
| 20 | + |
| 21 | +### dispatch\_particle\_effect |
| 22 | + |
| 23 | +`effects.dispatch_particle_effect(std::string particle_effect, origin):` <mark style="color:purple;">`void`</mark> |
| 24 | + |
| 25 | +| Name | Type | |
| 26 | +| ------ | ----------- | |
| 27 | +| origin | c\_vector3d | |
| 28 | + |
| 29 | +### dispatch\_tesla |
| 30 | + |
| 31 | +`effects.dispatch_particle_effect(origin, time, radius, beams, width, std::string sprite_name, float_red, float_green, float_blue):` <mark style="color:purple;">`void`</mark> |
| 32 | + |
| 33 | +| Name | Type | |
| 34 | +| ------ | ----------- | |
| 35 | +| origin | c\_vector3d | |
| 36 | +| time | float | |
| 37 | +| radius | float | |
| 38 | +| beams | float | |
| 39 | +| width | float | |
| 40 | + |
| 41 | +### dispatch\_smoke |
| 42 | + |
| 43 | +`effects.dispatch_smoke(x, y, z, scale, framerate):` <mark style="color:purple;">`void`</mark> |
| 44 | + |
| 45 | +| Name | Type | |
| 46 | +| --------- | ----- | |
| 47 | +| x/y/z | float | |
| 48 | +| scale | float | |
| 49 | +| framerate | float | |
| 50 | + |
| 51 | +### dispatch\_sparks |
| 52 | + |
| 53 | +`effects.dispatch_sparks(x, y, z):` <mark style="color:purple;">`void`</mark> |
| 54 | + |
| 55 | +| Name | Type | |
| 56 | +| ----- | ----- | |
| 57 | +| x/y/z | float | |
| 58 | + |
| 59 | +### dispatch\_dust |
| 60 | + |
| 61 | +`effects.dispatch_dust(x, y, z, size, speed):` <mark style="color:purple;">`void`</mark> |
| 62 | + |
| 63 | +| Name | Type | |
| 64 | +| ----- | ----- | |
| 65 | +| x/y/z | float | |
| 66 | +| size | float | |
| 67 | +| speed | float | |
| 68 | + |
| 69 | +### dispatch\_muzzleflash |
| 70 | + |
| 71 | +`effects.dispatch_muzzleflash(x, y, z, scale, type):` <mark style="color:purple;">`void`</mark> |
| 72 | + |
| 73 | +| Name | Type | |
| 74 | +| ----- | ----- | |
| 75 | +| x/y/z | float | |
| 76 | +| scale | float | |
| 77 | +| type | int | |
| 78 | + |
| 79 | +### dispatch\_metalsparks |
| 80 | + |
| 81 | +`effects.dispatch_metalsparks(x, y, z):` <mark style="color:purple;">`void`</mark> |
| 82 | + |
| 83 | +| Name | Type | |
| 84 | +| ----- | ----- | |
| 85 | +| x/y/z | float | |
| 86 | + |
| 87 | +### dispatch\_energysplash |
| 88 | + |
| 89 | +`effects.dispatch_energysplash(x, y, z, explosive):` <mark style="color:purple;">`void`</mark> |
| 90 | + |
| 91 | +| Name | Type | |
| 92 | +| --------- | ----- | |
| 93 | +| x/y/z | float | |
| 94 | +| explosive | bool | |
| 95 | + |
| 96 | +### dispatch\_ricochet |
| 97 | + |
| 98 | +`effects.dispatch_ricochet(x, y, z):` <mark style="color:purple;">`void`</mark> |
| 99 | + |
| 100 | +| Name | Type | |
| 101 | +| ----- | ----- | |
| 102 | +| x/y/z | float | |
| 103 | + |
| 104 | +### suppress\_effects\_sounds |
| 105 | + |
| 106 | +`effects.suppress_effects_sounds(suppress):` <mark style="color:purple;">`void`</mark> |
| 107 | + |
| 108 | +| Name | Type | |
| 109 | +| -------- | ---- | |
| 110 | +| suppress | bool | |
| 111 | + |
| 112 | +### draw\_lights |
| 113 | + |
| 114 | +`effects.draw_lights(c_client_entity* entity, float_red, float_green, float_blue, float_alpha):` <mark style="color:purple;">`void`</mark> |
| 115 | + |
| 116 | +### draw\_beam |
| 117 | + |
| 118 | +`effects.draw_lights(start, end, std::string sprite, time, width, amplitude, speed, segments, float_red, float_green, float_blue, float_alpha):` <mark style="color:purple;">`void`</mark> |
| 119 | + |
| 120 | +| Name | Type | |
| 121 | +| --------- | ----------- | |
| 122 | +| start/end | c\_vector3d | |
| 123 | +| time | float | |
| 124 | +| width | float | |
| 125 | +| amplitude | float | |
| 126 | +| speed | float | |
| 127 | +| segments | int | |
0 commit comments