[QUOTE=robertp;30376666]
[feihc]USE LUA TAGS FFS[/feihc]
never mind it works, but i was wondering if u could "feihc" it up so it only works once each time they spawn and it also disables godmode if they get in a vehicle? that would be great[/QUOTE]
What do you mean "so it only works once each time they spawn"?
[editline]10th June 2011[/editline]
Also: here - code is cleaner.
[lua]
local function physgungodmode( )
for k,v in pairs(player.GetAll()) do
if v:InVehicle() then
v:GodDisable()
return
end
local weap = v:GetActiveWeapon()
if ValidEntity(weap) and (weap:GetClass() == "gmod_tool" or weap:GetClass() == "weapon_physgun") then
v:GodEnable()
else
v:GodDisable()
end
end
end
hook.Add("Think", "GodOnGunhold", physgungodmode)
[/lua]
uhm i mean this runs once each time they respawn so that they cant shoot then change to physgun to get the godmode back. but sorry about the lua tags i fail
So... when someone spawns and first pulls out the physgun or toolgun, they can get godmode, but as soon as they switch to a different gun, godmode no longer works on the phys/toolguns?
yes
if thats possible
[QUOTE=Feihc;30365394]I'm fairly certain there is already a mod out there that does this.
Try searching on garrysmod.org for it.[/QUOTE]
Hmm, I did some searching and couldn't find it. Do you happen to have a link for it?
[QUOTE=A Lost Sandwich;30394166]Hmm, I did some searching and couldn't find it. Do you happen to have a link for it?[/QUOTE]
Have you seen this [url]http://www.facepunch.com/threads/1095267-Utility-Blocks-Block-those-pesky-exploiters![/url] it creates blocks that do different functions, it might have an admin block you can use, I know it has push and kill blocks.
Ok, i just looked at the page myself, and it doesn't have an admin/dev block but I believe if you asked the creator real nice he might add it.
[QUOTE=Fantym420;30394386]Have you seen this [url]http://www.facepunch.com/threads/1095267-Utility-Blocks-Block-those-pesky-exploiters![/url] it creates blocks that do different functions, it might have an admin block you can use, I know it has push and kill blocks.
Ok, i just looked at the page myself, and it doesn't have an admin/dev block but I believe if you asked the creator real nice he might add it.[/QUOTE]
Hmm, I'm not so sure with the visuals on that. It'd be better to have a translucent colour wall like in the picture I posted that just acts as a solid to players except admins.
@ fehic, can you make me a pokeball like the one if your vid on youtube about it with all the effects and sounds i really need it plz
A very basic Team Deathmatch and Free For All using fretta (and post on wiki please). There really needs to be a de-facto skeleton to work from, it's very difficult for people new to gamemode scripting to get off the starting blocks (like me D:) if they keep needing to dissect other people's code and hope it works.
A portable .50 BMG, any .50's I find on Gmod have terrible recoil(I know, realistic, but I don't think an MG42 fired from the hip will fly out of your hands either)
I know MG42s' and .50's are a completely different caliber but come on, this is a game, lol.
[url]http://www.youtube.com/watch?v=zfDPt5Uv3mQ[/url]
A "true to movie" Jumper SWEP. The one in the video is no longer up for download, and I like the milder screen effect as opposed to the original Jumper SWEP. The original Jumper SWEP only lets you fly, but THAT one, *points to YouTube link* has a near instant teleport ('cuz of the cool screen distort and makes it feel like you're being warped there) and it still allows you to fly, as well as go through surfaces, which the original Jumper SWEP doesn't allow. It'd be awesome if you could make something like that.
[url]http://www.facepunch.com/threads/498644-Jumper-SWEP/page1[/url]
Good luck, and hope you can make it :D
[QUOTE=supamaneyoh;31304163]@ fehic, can you make me a pokeball like the one if your vid on youtube about it with all the effects and sounds i really need it plz[/QUOTE]
You bumped my thread which is very obviously dead after you spammed my YouTube videos AND inbox begging for a project that I have already told you won't be finished for quite some time if ever - and you only have one post, this one?
Awesome, thanks for that.
[ontopic]
@Ylsid - the fretta base is exactly that. Just create a gamemode off of that and add content as you want.
@GeneralSturnn - the OP says no bullet SWEPs, sorry but I'm looking for more creative requests than this.
Would you be interested in trying [url]http://www.facepunch.com/threads/1106401-Fretta-Gamemode-Delay-Options[/url] for me?
[QUOTE=Feihc;29713040]I have a handful of my own projects that I've been working on here and there, but lately have found no motivation to actually work on them and keep finding myself coming to the request section to see if theres anything here worth making for someone (which most of the time there isn't)
Lately I've found that I get a greater feeling out of helping people and giving them something that they've been wanting for a while rather than creating my own content and fishing for praise for it.
I've made these types of threads before and they've always ended in a shit storm so I'm going to very clearly lay out the rules of what I consider a valid request.
[list]
[*]Acceptable requests
[list]
[*]SENTs
[*]SWEPs
[*]STOOLs
[*]Autorun scripts
[*]Simple addons
[/list]
[/list]
[list]
[*]What I need from you
[list]
[*]Any content that the request might need (Models/Materials/Sounds/etc) IN SOURCE FORMAT - I do not have the tools to convert different models and things to source ready content.
[*]A clear, competent description of your request. The more detail you give, the better. Everything you tell me about what you want till come out better.
[/list]
[*]What I will NOT do
[list]
[*][b]ANYTHING[/b] RP related - that means DarkRP, LightRP, BlueRP, I don't care. Most of them have their own stupid "API" that I don't care to work with and I don't care enough about RP to bother with it.
[*]Some huge gamemode thats going to take more that a day or two, this is for quick little things that people have found a need for
[*]"5 Second SWEPs" - anything that some jerkoff could paste together in a few minutes.
This includes "Admin Guns", "OP GUN OF AWESOME", AK47 that shoots babies
[*]Anything "Megamod" related - no Wire, Stargate, SPP, etc
[/list]
[/list]
Please try to keep your requests sane. I'm not the greatest coder but not the worst either.
More creative ideas go to the top of the work queue.
And no, I can't fix broken functions. Go to the Niggles thread for that.
If you send me a PM with a request, it WILL be ignored. Put your request here, that's the point of the thread. It's not a notice of me taking your requests, its for you to request them HERE. Not to my inbox.[/QUOTE]
could you do all this
[url]www.bybservers.co.uk/changelog.txt[/url]
And there custom printers
[QUOTE=havejack;31361934]could you do all this
[url]www.bybservers.co.uk/changelog.txt[/url]
And there custom printers[/QUOTE]
"Make me an entire gamemode" isn't a legitimate request.
[QUOTE=Feihc;31357398]You bumped my thread which is very obviously dead after you spammed my YouTube videos AND inbox begging for a project that I have already told you won't be finished for quite some time if ever - and you only have one post, this one?
Awesome, thanks for that.
[ontopic]
@Ylsid - the fretta base is exactly that. Just create a gamemode off of that and add content as you want.
@GeneralSturnn - the OP says no bullet SWEPs, sorry but I'm looking for more creative requests than this.[/QUOTE]
Never read "no bullets" but I did read:"No OP awesomer Noob/minge destroyer weponz"
Could you make me a quick script that plays a sound to a player as soon as the join?
[QUOTE=Feihc;30377452]What do you mean "so it only works once each time they spawn"?
[editline]10th June 2011[/editline]
Also: here - code is cleaner.
[lua]
local function physgungodmode( )
for k,v in pairs(player.GetAll()) do
if v:InVehicle() then
v:GodDisable()
return
end
local weap = v:GetActiveWeapon()
if ValidEntity(weap) and (weap:GetClass() == "gmod_tool" or weap:GetClass() == "weapon_physgun") then
v:GodEnable()
else
v:GodDisable()
end
end
end
hook.Add("Think", "GodOnGunhold", physgungodmode)
[/lua][/QUOTE]Nice one. Loop through all the players every tick.
[QUOTE=Science;31384480]Nice one. Loop through all the players every tick.[/QUOTE]
Nice one, trying to criticize when you don't know wtf you're talking about.
A) That was a quick script and wasn't meant to be the absolute best way to do it
B) There is no way to hook into when you switch weapons, there's a hook for when you first RECEIVE a weapon, but not when you switch them, therefor this is the only way to do it effectively as far as I found when I was creating it.
And you're going to have at most, what, 32 players on a given server? If its FULL - a loop through a 32 member table every Think isn't going to have much of an impact, especially if all you're doing is checking a few functions and setting god mode.
Hello Feihc,
I would really like a sort of Protection Armor, that when toggled on slows a player by 33% and increases his damage resistance by 33% until toggled off again. Toggling it on-off has a 3 second "activation time" where the player must stand still. Any damage during that "activation time" stops it.
It must not have a visual effect or anything, it just changes the two stats.
I'd really appreciate if you'd do this for me
I don't suppose you could make a stool that links a camera to a vehicle. I've been looking for a stool that lets me spawn a camera, and then link it to a pod, so that the player in the pod has their view through it. It needs to allow any player in the server to use it. Would that be possible?
Can you make a tool that plays the sprint, run, walk animations for the Civil Protection & rebels, and the folded arms animation for the rebels as well?
That is literally it. They should play the animation no matter what weapon they're holding. I don't really care about that :v:
If you could make me a swep that makes an NPC turn into a ragdoll, spazz out for a bit, and then return to it's ordinary state I would love you long time.
[editline]1st August 2011[/editline]
Oh, I just realized this thread is "dead."
Sorry! :(
How is it dead... it's been like 2 days since the post before yours
[B]Weaponcache[/B]
[I]models/items/ammocrate_smg1.mdl[/I]
is a box spownable only for TEAM_GUN.
You can add money to the cache and if there is an ammount you can purchase the single rifles/guns
You can set the owner of the cache. U can claim ownership and/or set "disalow another palyer to own it"
Cost / weapon other people buy goes to gundealer (100$)
Prices:
mp5 990
famas 715
p90 1100
pump 770
xm1014 1600
sniper silenced 1540
grande: 999
You can consider this a dead thread because I no longer have time to code even for myself with my new job, girlfriend and school starting back up I'm really gonna be screwed for time.
[QUOTE=Feihc;31419007]Nice one, trying to criticize when you don't know wtf you're talking about.
A) That was a quick script and wasn't meant to be the absolute best way to do it
B) There is no way to hook into when you switch weapons, there's a hook for when you first RECEIVE a weapon, but not when you switch them, therefor this is the only way to do it effectively as far as I found when I was creating it.
And you're going to have at most, what, 32 players on a given server? If its FULL - a loop through a 32 member table every Think isn't going to have much of an impact, especially if all you're doing is checking a few functions and setting god mode.[/QUOTE]
What you could/should do is when the player is damaged, check his weapon and then scale the damage.
[QUOTE=Feihc;29713040]I have a handful of my own projects that I've been working on here and there, but lately have found no motivation to actually work on them and keep finding myself coming to the request section to see if theres anything here worth making for someone (which most of the time there isn't)
Lately I've found that I get a greater feeling out of helping people and giving them something that they've been wanting for a while rather than creating my own content and fishing for praise for it.
I've made these types of threads before and they've always ended in a shit storm so I'm going to very clearly lay out the rules of what I consider a valid request.
[list]
[*]Acceptable requests
[list]
[*]SENTs
[*]SWEPs
[*]STOOLs
[*]Autorun scripts
[*]Simple addons
[/list]
[/list]
[list]
[*]What I need from you
[list]
[*]Any content that the request might need (Models/Materials/Sounds/etc) IN SOURCE FORMAT - I do not have the tools to convert different models and things to source ready content.
[*]A clear, competent description of your request. The more detail you give, the better. Everything you tell me about what you want till come out better.
[/list]
[*]What I will NOT do
[list]
[*][b]ANYTHING[/b] RP related - that means DarkRP, LightRP, BlueRP, I don't care. Most of them have their own stupid "API" that I don't care to work with and I don't care enough about RP to bother with it.
[*]Some huge gamemode thats going to take more that a day or two, this is for quick little things that people have found a need for
[*]"5 Second SWEPs" - anything that some jerkoff could paste together in a few minutes.
This includes "Admin Guns", "OP GUN OF AWESOME", AK47 that shoots babies
[*]Anything "Megamod" related - no Wire, Stargate, SPP, etc
[/list]
[/list]
Please try to keep your requests sane. I'm not the greatest coder but not the worst either.
More creative ideas go to the top of the work queue.
And no, I can't fix broken functions. Go to the Niggles thread for that.
If you send me a PM with a request, it WILL be ignored. Put your request here, that's the point of the thread. It's not a notice of me taking your requests, its for you to request them HERE. Not to my inbox.[/QUOTE]
Hi u accept lua request i hear can u make a lua that will show a notes written in a notepad file (always same name and location example .../addons/mod/add/add.txt if not exist do not show anything
when u open the spawnlist of a mod would be helpfull to make notes there for bodygrouped models
Sorry, you need to Log In to post a reply to this thread.