mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
Page:
Proxy Expressions
Pages
Beginners FAQ
Complete Outfit Examples
Converting gamebryo models
Converting source models
Custom Models
Home
Hosting Custom Content on GitHub
How to turn a convert a custom ragdoll into a pac3 for the semi experienced and impatient
In Depth Guide to Bringing Custom Models and Textures into PAC3 (2019 Revised)
Intermediate FAQ
PAC in gamemodes
Playing sounds using the animation event
Proxy Expressions
Using Facegen
Using dropbox
Using meshlab
Video tutorials
Where to get obj files
10
Proxy Expressions
Cynthia Foxwell edited this page 2018-03-10 15:09:47 -07:00
Table of Contents
Proxy Expressions
This page will show you every function for expressions within the proxy part.
Functions
- owner_position - Position of the part owner
- owner_fov - Field of View (FOV) of the owner
- visible - Is the part visible within x radius -
visible(radius)
- time - Equal to RealTime
- synced_time - Equal to CurTime
- random - Random
- timeex - RealTime minus time
- eye_position_distance - Distance between part and eye position
- eye_angle_distance - Distance between part and eye angle
- aim_length - Distance between part and hitpos
- aim_length_fraction - Fraction of the distance between part and hitpos
- owner_eye_angle_pitch - Pitch of owner's eye angle
- owner_eye_angle_yaw - Yaw of owner's eye angle
- owner_eye_angle_roll - Roll of owner's eye angle
- owner_velocity_length - Overall velocity of owner
- owner_velocity_forward - Forward/Backwards velocity of owner
- owner_velocity_right - Left/Right velocity of owner
- owner_velocity_up - Up/Down velocity of owner
- owner_velocity_length_increase - Overall velocity of owner plus an increase (unsure)
- owner_velocity_forward_increase - Forward/Backwards velocity of owner plus an increase (unsure)
- owner_velocity_right_increase - Left/Right velocity of owner plus an increase (unsure)
- owner_velocity_up_increase - Up/Down velocity of owner plus an increase (unsure)
- parent_velocity_length - Overall velocity of part parent
- parent_velocity_forward - Forward/Backwards velocity of part parent
- parent_velocity_right - Left/Right velocity of part parent
- parent_velocity_up - Up/Down velocity of part parent
- command - Based off events (unsure, code unclear) -
command(index)
(unclear) - voice_volume - Volume of owner's voice
- light_amount_r - Red value of light part (or ambient light maybe)
- light_amount_g - Green value of light part (or ambient light maybe)
- light_amount_b - Blue of light part (or ambient light maybe)
- owner_health - Self explanatory
- owner_armor - Self explanatory
- player_color_r - Red value of player color
- player_color_g - Green value of player color
- player_color_b - Blue value of player color
- hsv_to_color - Converts HSV value into RGB value
hsv_to_color(h,s,v)
- lerp - Lerp from one value to another -
lerp(speed,valuea,valueb)
Math functions
- none - Self explanatory
- sin - Sine - Example:
sin(time())*10
will create a fade - cos - Cosine - Example:
cos(time())*10
will create a slower fade effect - tan - Tangent - Example:
tan(time())*10
will fade out and reset - abs - Absolute value - Example:
abs(sin(time())*10)
will only output the positive value of a sine - mod - Modulus, same as %
- sgn - Type of number given; -1 for negative, 1 for postive, 0 for 0.
Beginners:
Advanced:
- Complete Outfit Examples
- Custom Models
- In Depth Guide to Bringing Custom Models and Textures into PAC3 (2019 Revised)
- PAC in gamemodes
Tutorials:
- Converting gamebryo models
- Converting source models
- Playing sounds using the animation event
- Video Tutorials
- Hosting Custom Content on GitHub
Documentation:
External Links: