Archiv verlassen und diese Seite im Standarddesign anzeigen : Gamemode: Anti-Propsurf Script
Bill Gates
27.08.2009, 14:44
Hallo Leute
Ich bräuchte ein Anti-Propsurf Script
im Neuen DarkRP ist dies bereits eingebaut aber
sobald ich es einschalte ist alles nocollided
d.h Props/Entitys fallen einfach durch die Erde
Und deswegen wollte ich euch Fragen ob jemand
soetwas Scripten könnte
Ich hätte es gerne so das wenn man mit der Physgun
das Prop anfasst das es Rot wird (oder eine andere Farbe)
Und wenn man es los lässt das es wieder Normal wird
Also würde mich freuen wenn jemand
dies machen könnte
MfG Bill Gates
WeltEnSTurm
27.08.2009, 15:14
war leichter als ich gedacht hab
Bill Gates
27.08.2009, 15:24
Das Script funktioniert nicht
WeltEnSTurm
27.08.2009, 15:32
Cool
bei mir schon
Bill Gates
27.08.2009, 15:32
local antipropsurf = CreateConVar("antipropsurf_enable", "1", {FCVAR_REPLICATED, FCVAR_ARCHIVE})
hook.Add("PhysgunPickup", "Anti_Propsurf", function(ply, ent)
if !ent.JustPickedUp and antipropsurf:GetFloat() == 1 then
ent.JustPickedUp = true
ent.AntiPropSurf={
phys=ent:GetCollisionGroup(),
color=Color(ent:GetColor()),
}
ent:SetCollisionGroup(COLLISION_GROUP_WEAPON)
ent:SetColor(255, 50, 50, 200)
end
return true
end)
hook.Add("PhysgunDrop", "Anti_Propsurf_Drop", function(ply, ent)
if ent.JustPickedUp then
ent:SetColor(ent.AntiPropSurf.color.r, ent.AntiPropSurf.color.g, ent.AntiPropSurf.color.b, ent.AntiPropSurf.color.a)
ent:SetCollisionGroup(ent.AntiPropSurf.collision)
ent.JustPickedUp = nil
end
end)
Wie kann es bei dir funktionieren ?
Kann es vielleicht sein das das DarkRP Anti Propblock das Script von dir das Blockt ?
oder der Gamemode selbst ?
WeltEnSTurm
27.08.2009, 15:34
Oh gott ich kenn meinen code
Was geht denn nicht?
Bill Gates
27.08.2009, 15:36
nunja ich habe es in lua getan hat nicht gefunkt dann in lua/autorun hat immernoch ned gefunkt
dann in lua/autorun/client hat auch ned gefunkt dann in lua/autorun/server hat auch ned gefunkt
Mache ich etwas falsch ?
Ich stelle mich auf ein Prop kann aber einfach "Surfen"
WeltEnSTurm
27.08.2009, 15:37
ja /facepalm
Wirds rot? Oder sonst was?
Bill Gates
27.08.2009, 15:38
Das soll Propsurfen aber Verhindern
was es aber nicht tut
Edit: Es wird ned Rot oder sonstiges
WeltEnSTurm
27.08.2009, 15:39
Irgendwelche errors in der console?
Und mach mal antipropsurf_enable 1 :]
Bill Gates
27.08.2009, 15:46
So hab mal in der Server Console nachgeschaut und habe etwas entdeckt (siehe Anhang)
WeltEnSTurm
27.08.2009, 15:52
Du hast meinen code geändert, bei mir fangt der 2. hook nämlich in zeile 16 und nicht 17 an, werd selber damit fertig :]
Bill Gates
27.08.2009, 16:00
So hab den Code jetzt in den Alten Zustand zurückversetzt
Hab dann Restartet alles per Rcon eingegeben aber es funkt ned :)
rcon antipropsurf_enable 1
rcon antipropsurf_enable 1
passiert nichts...
dann
rcon antipropsurf_enable
"antipropsurf_enable" = "1"
replicated clientcmd_can_execute
WeltEnSTurm
27.08.2009, 16:03
oh gott was willst du D:
1. Mach antipropsurf_enable 1
2. Geh auf den server
3. Spawn ein prop
4. ?????
5. PROFIT!
Bill Gates
27.08.2009, 17:47
Das habe ich auch alles gemacht
Geht aber nicht :mad:
Powered by vBulletin® Version 4.2.2 Copyright ©2025 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.