Skip to content

Commit 21cd9e8

Browse files
committed
Update
1 parent 3bf306d commit 21cd9e8

File tree

9 files changed

+2942
-0
lines changed

9 files changed

+2942
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
@name GenericDriveV2.5 (Specifically for CVT)
2+
@inputs Active W A S D Shift Engine:entity
3+
@outputs Throttle GearOut LgearTC RgearTC Lclutch Rclutch HardBrake Self:entity LBrake RBrake
4+
@persist Gear Lgear Rgear Speed Active Dualclutch Dualgearbox GEARTIME Rev
5+
@persist Brakepower Turnpower Twospeed
6+
@persist TransferCase ShiftTime
7+
@inputs Entities:array
8+
for(I=1,Entities:count()){
9+
Entities[I,entity]:propNotSolid(1)
10+
}
11+
12+
#@model models/sprops/geometry/t_fdisc_72.mdl
13+
14+
#E2 by MidniteDLite
15+
16+
if(first()|dupefinished()){
17+
Self = entity()
18+
Self:setColor(vec(255,255,255))
19+
20+
Dualclutch = 0
21+
Dualgearbox = 1
22+
TransferCase = 1
23+
Twospeed = 1
24+
Turnpower = 15
25+
Brakepower = 5
26+
}
27+
28+
interval(100)
29+
30+
ChangeRPM = Engine:acfRedline()*90/100
31+
DownChangeRPM = Engine:acfPowerbandMin()
32+
Throttle=0
33+
Rclutch=0
34+
Lclutch=0
35+
if(Active==0|Rclutch+Lclutch>0){HardBrake=1}else{HardBrake=0}
36+
37+
#if(changed(Active)){reset()}
38+
if(Active==1){
39+
40+
if(!W&!S&!A&!D&!Shift){Gear=0,Lgear=0,Rgear=0}
41+
if(Shift){Gear=0,Lgear=0,Rgear=0}
42+
if(Gear==0){GearOut=1}else{GearOut=Gear}
43+
if(Lgear==0){LgearOut=1}else{LgearOut=Lgear}
44+
if(Rgear==0){RgearOut=1}else{RgearOut=Rgear}
45+
if(Engine:acfRPM()<ChangeRPM/4){Gear=0,Lgear=0,Rgear=0}
46+
47+
if(Dualclutch==1&TransferCase==0){GEARTIME = GEARTIME - 1
48+
if(S&!W&Twospeed){Gear = 2}
49+
if(!S&W&Twospeed){Gear = 1}
50+
if(W|A|S|D){Throttle=100}
51+
if(A&!Shift){Rclutch = Turnpower}else{Rclutch = 0}
52+
if(D&!Shift){Lclutch = Turnpower}else{Lclutch = 0}
53+
if(Shift){Rclutch = Brakepower}
54+
if(Shift){Lclutch = Brakepower}
55+
if(!W&!S&!A&!D&!Shift){Rclutch = Brakepower}
56+
if(!W&!S&!A&!D&!Shift){Lclutch = Brakepower}
57+
if(!W&!S&!A&!D&!Shift&Rev){Throttle = 100}}
58+
if(Dualgearbox==1&TransferCase==1){GEARTIME = GEARTIME - 1
59+
if(S&!W){LgearTC=2,RgearTC=2}else{RgearTC=1,LgearTC=1}
60+
if(A&Twospeed&!W&!S){LgearTC=2,RgearTC=1,Lgear=1,Rgear=1}
61+
elseif(D&Twospeed&!W&!S){LgearTC=1,RgearTC=2,Lgear=1,Rgear=1}
62+
if(Twospeed){
63+
if(Engine:acfRPM()>ChangeRPM&Lgear<=1&Rgear<=1&GEARTIME<=0){GEARTIME=ShiftTime,Rgear=Rgear+1,Lgear=Lgear+1}
64+
elseif(Engine:acfRPM()<DownChangeRPM&Lgear<=2&Rgear<=2&Rgear>1&Lgear>1&GEARTIME<=0){GEARTIME=ShiftTime,Rgear=Rgear-1,Lgear=Lgear-1}}
65+
if(W|A|S|D){Throttle=100}
66+
if(D&W|D&S){RBrake = 1 Rclutch = Turnpower}else{RBrake=0}
67+
if(A&W|A&S){LBrake = 1 Lclutch = Turnpower}else{LBrake=0}
68+
if(Shift){Rclutch = Brakepower Lclutch = Brakepower LBrake = 1 RBrake = 1}
69+
if(!W&!S&!A&!D&!Shift){LBrake = 1 RBrake = 1 Lclutch = Brakepower Rclutch = Brakepower}
70+
if(!W&!S&!A&!D&!Shift&Rev){Throttle = 100}}
71+
}
72+
if(Active==0){
73+
interval(200)
74+
Rclutch = Brakepower
75+
Lclutch = Brakepower
76+
}
77+
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
@name GG5-HOLO V1.3
2+
@inputs [Gun]:entity [Active R PrevWeapon NextWeapon]:number Base:entity [Cam]:wirelink MuzzleVel [HAxis,VAxis,VAxis2]:entity
3+
@persist [Position]:vector CamDistance FOV
4+
@outputs [Ops]:number
5+
@outputs [Self]:entity
6+
@outputs [Filter]:array
7+
@persist [Inertia GunAng]:angle
8+
@persist [MaxElevation MaxDepression MinYaw MaxYaw RotateSpeed Unlock Interval]:number
9+
@trigger Active PrevWeapon NextWeapon R
10+
11+
#ChunderDownUndeR
12+
13+
#v1.1 Changes-wirelink to streamline setup, Mup,Mdown to prev/next weapon to instant wire to pod
14+
#v1.2 Added Dual axis option (Wiring Vaxis2 will creat a seperate rotation joint for positive gun elevation)
15+
#v1.3 No longer retarded
16+
#Changed code to allow a sideways, or upside down gun which was otherwise unable to make turret work properly
17+
18+
#-----Setup-----
19+
#R-Toggles turret lock/unlock
20+
#PrevWeapon/NextWeapon-Zoom increment
21+
22+
#VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
23+
#Haxis and Vaxis is the reference entity for center of rotation and oscillation respectively.
24+
25+
#To put it simple this is where your guns rotate on pitch and yaw axis (eg:turret ring can be haxis)
26+
#having your Haxis destroyed infight will not destroy the turret / parenting. but will if you reset the chip
27+
#Vaxis2 is an optinal input which will create a second joint of pitch for dual axis. Vaxis becomes point of depression and Vaxis2 becomes point of elevation with gun pitch
28+
29+
#NOTE:Dual axis guns cant have the E2 updated on an unfrozen/used dupe without displacing the gun
30+
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31+
32+
#If you are working on a WIP do not unfreeze it to test if the turret works because that gets rid of parenting on some servers
33+
#Dupe it and paste it if this happens and remember to save regulary babes
34+
35+
#Any other questions or issues please contact ChunderDownUndeR Via Steam/discord/Gmod
36+
37+
#ACF2 > Acf3
38+
39+
40+
if(first()|dupefinished()){
41+
Self=entity()
42+
GunAng = Self:toLocal(Gun:angles())
43+
# Orient=Self:toWorld(ang(0,GunAng:yaw(),0))
44+
45+
holoCreate(3,HAxis:pos(),vec(0.3),Self:toWorld(ang(0,GunAng:yaw(),0)))
46+
holoAlpha(3,0)
47+
48+
holoCreate(2,VAxis:pos(),vec(0.3),Gun:angles():setRoll(0))
49+
holoAlpha(2,0)
50+
51+
VAxis:parentTo(holoEntity(2))
52+
HAxis:parentTo(holoEntity(3))
53+
holoParent(3,Self)
54+
holoParent(2,3)
55+
if(VAxis2){
56+
holoCreate(4,VAxis2:pos(),vec(0.3),Gun:angles():setRoll(0))
57+
holoAlpha(4,0)
58+
holoParent(4,2)
59+
VAxis2:parentTo(holoEntity(4))
60+
Gun:parentTo(holoEntity(4))
61+
}
62+
else{Gun:parentTo(holoEntity(2))}
63+
}
64+
if ( changed(Active) ) {
65+
66+
Interval = 100 #Higher the number the more the optimized
67+
68+
MaxElevation = 15 #---How High you can aim up (in degrees)---#
69+
MaxDepression = 15 #---How Low you can aim down (in degrees)---#
70+
MinYaw = 360 #---Keep This at 360. If making a tank destroyer or bow gun, make it 20 and 20---#
71+
MaxYaw = 360 #---Keep This at 360. If making a tank destroyer or bow gun, make it 20 and 20---#
72+
Position = vec(-5, 14, 110) #---Where your camera will be floating---# (left/right,up/down,forward/back)
73+
CamDistance = 130 #---Camera Radius around the Camera Position---#
74+
RotateSpeed = 80 #---Turret Rotation Speed in Degrees per Second---#
75+
# Self = entity() #---Ignore this shit, doesn't need to be touched---#
76+
# -DO NOT TOUCH ANYTHING ELSE UNDER THIS.
77+
#--------------------------------------------------------------------------------------------------------------#
78+
# Automatic settings
79+
Filter = Filter = Gun:getConnectedEntities() # Ranger filter
80+
Filter:pushEntity(Gun)
81+
82+
RotateSpeed/=20
83+
# GunAng = Self:toLocal(Gun:angles())
84+
Inertia = shiftL(ang(Gun:inertia())):setRoll(0)
85+
Unlock = 0
86+
FOV = 90
87+
Cam["Filter",array]=Filter
88+
Cam["Position",vector]=Base:toWorld(Position)
89+
Cam["Parent",entity]=Base
90+
Cam["Activated",normal]=Active
91+
#Ra = Cam["Trace",ranger]
92+
Cam["Distance",normal] = CamDistance
93+
94+
}
95+
elseif ( inputClk() ) {
96+
if( PrevWeapon ) { FOV = max(FOV/2, 5) }
97+
elseif ( NextWeapon ) { FOV = min(FOV*2, 90)}
98+
elseif( changed(R) & R ) {
99+
if ( Unlock ) { Unlock = 0 }
100+
else { Unlock = 1 , interval(Interval) }
101+
102+
}
103+
}
104+
105+
if(changed(FOV)){Cam["FOV",normal]=FOV}
106+
107+
if ( Unlock & clk() ) {
108+
109+
T = ((Cam["Trace",ranger]:distance()*1.27) / 39.3701) / (MuzzleVel ) #0.032258 * Ra:distance() instead of (Ra:distance()*1.27) / 39.3701)
110+
111+
Drift = (Base:vel() * T)
112+
Drop = (0.5 * 9.8 * T^2) * 39.3701
113+
114+
GunDir=(((Cam["Trace",ranger]:pos()- vec(0,0,-Drop)) - Drift) -Gun:massCenter()):normalized()
115+
# GunDir = Gun:heading(AimPos)
116+
GunAng = angnorm(clamp(GunAng - clamp(heading(vec(), GunAng, Self:toLocalAxis(GunDir)), -RotateSpeed, RotateSpeed), ang(-MaxElevation,-MinYaw, 0), ang(MaxDepression, MaxYaw, 0)))
117+
118+
GunYaw = Self:toWorld(ang(0,clamp(GunAng:yaw(),-MinYaw,MaxYaw),0))
119+
holoAng(3,GunYaw)
120+
GunPitch = ang(clamp(GunAng:pitch(),-MaxElevation,MaxDepression),0,0)
121+
if(VAxis2){
122+
holoAng(2,holoEntity(3):toWorld(GunPitch:setPitch(max(GunPitch:pitch(),0))))
123+
holoAng(4,holoEntity(2):toWorld(GunPitch:setPitch(min(GunPitch:pitch(),0))))
124+
125+
}else{
126+
holoAng(2,holoEntity(3):toWorld(GunPitch))}
127+
128+
interval(Interval)
129+
Ops=ops()
130+
}
131+
138 KB
Loading
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Pack - Gmod ACF-3 Tank Tutorial [Outdated]
2+
3+
## Details
4+
5+
### Author
6+
7+
- Author: PhilGarryGame
8+
- YouTube: https://www.youtube.com/@PhilGarryGame
9+
10+
### Publication Info
11+
12+
- Title: Gmod ACF-3 Tank Tutorial [Outdated]
13+
- Date (dd-mm-yyyy): 10-03-2024
14+
- Source: https://www.youtube.com/watch?v=srQKDWfEIz8
15+
- Source: https://www.dropbox.com/scl/fo/biy1y42v4rgklav8ffs1y/h?rlkey=x52rf11c6rzz37x1ptke42tsd&e=2&dl=0
16+
- Source Accessed (dd-mm-yyyy): 28-09-2025
17+
- Pack Type: expression2
18+
19+
## Description
20+
21+
Video:
22+
[YouTube - Gmod ACF-3 Tank Tutorial [Outdated]](https://www.youtube.com/watch?v=srQKDWfEIz8)
23+
24+
![image1](./image1.jpg)
25+
26+
NEW TUTORIAL IS OUT FOR CREW UPDATE
27+
• Gmod ACF Crew Tutorial
28+
29+
https://www.dropbox.com/scl/fo/biy1y42v4rgklav8ffs1y/h?rlkey=x52rf11c6rzz37x1ptke42tsd&e=2&dl=0
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Packs - PhilGarryGame
2+
3+
## Details
4+
5+
### Author
6+
7+
- Author: PhilGarryGame
8+
- YouTube: https://www.youtube.com/@PhilGarryGame
9+
10+
## Packs
11+
12+
### 1. YouTube
13+
14+
- Source: https://www.youtube.com/@PhilGarryGame
15+
- Source Accessed (dd-mm-yyyy): 28-09-2025
16+
- Pack Type: expression2
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://www.dropbox.com/scl/fi/9f5vwbtl40lwmjxh687f5/backup.zip?rlkey=uwthe3pxxxbjrj8fvu0pgttyq&st=wdlmulkn&dl=0
163 KB
Loading
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# PAC3 - Army Pony(you need tf2 to see all the parts)
2+
3+
## Details
4+
5+
### Author
6+
7+
- Author: penguon (Penguin) (pasta_penguinie)
8+
- Steam Profile: https://steamcommunity.com/profiles/76561198121215700
9+
- YouTube: https://www.youtube.com/watch?v=kvcFCJ3VWPc
10+
11+
### Publication Info
12+
13+
- Title: Spider-Man Movement pac - gmod pac3
14+
- Date (dd-mm-yyyy): 20-08-2023
15+
- Source: https://www.youtube.com/watch?v=kvcFCJ3VWPc
16+
- Source: https://www.dropbox.com/scl/fi/8iy6j7bohec0zy7taufjk/spiderman-trimmed.txt?rlkey=u39wokgrkouxp9sd5wortwvo4&e=1&st=1k7qyiec&dl=0
17+
- Source Accessed (dd-mm-yyyy): 28-09-2025
18+
19+
## Description
20+
21+
Video:
22+
[YouTube - Spider-Man Movement pac - gmod pac3](https://www.youtube.com/watch?v=kvcFCJ3VWPc)
23+
24+
![image1](./image1.jpg)
25+
26+
like whatsapp danger 🗣️ 🗣️ 🔥 🔥
27+
28+
thank you nick and jeff for helping me with this video :p
29+
30+
download TRIMMED version here (a version without the model or the animations):
31+
https://www.dropbox.com/scl/fi/8iy6j7bohec0zy7taufjk/spiderman-trimmed.txt?rlkey=u39wokgrkouxp9sd5wortwvo4&e=1&st=1k7qyiec&dl=0
32+
33+
if you have any questions about anything related to pac, feel free to leave a comment or add me on discord: penguinii_
34+
playermodel used: https://steamcommunity.com/sharedfiles/filedetails/?id=2178886263&searchtext=into+the+spider-verse
35+
official pac discord: https://discordapp.com/invite/utpR3gJ

0 commit comments

Comments
 (0)