Hey there. So after this model of the S7 was released on tf3dm.com, I thought why not quickly convert this to garrysmod. So if any of you are interested in downloading this, then the link can be found under this. Thanks.
[URL="http://steamcommunity.com/sharedfiles/filedetails/?id=778732892"]
http://steamcommunity.com/sharedfiles/filedetails/?id=778732892[/URL]
It would also be nice if any devs could actually turn this into an exploding entity even though its the Samsung S7 Note versions that explode and not the S7 Edge (correct me if I'm wrong).
Thanks you for triggered me
[IMG]http://i64.tinypic.com/wvaoeq.jpg[/IMG]
Entity is done (addon/lua/entities/samsung_s7.lua)
[lua]
AddCSLuaFile()
ENT.Type = "anim"
ENT.PrintName = "Samsung S7"
ENT.Spawnable = true
ENT.Base = "base_gmodentity"
if CLIENT then
function ENT:Draw()
self:DrawModel()
end
else
function ENT:Initialize()
self:SetModel( "models/samsung_s7/samsung_s7.mdl" )
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_NONE )
self:SetSolid( SOLID_VPHYSICS )
self:SetUseType( SIMPLE_USE )
local phys = self:GetPhysicsObject()
if phys:IsValid() then
phys:Wake()
end
end
function ENT:Touch( ent)
if ( ent:IsPlayer() ) then
local explosion = ents.Create( "env_explosion" )
explosion:SetKeyValue( "spawnflags", 144 )
explosion:SetKeyValue( "iMagnitude", 15 )
explosion:SetKeyValue( "iRadiusOverride", 256 )
explosion:SetPos(self:GetPos())
explosion:Spawn()
explosion:Fire("explode","",0)
ent:ChatPrint( "One does not simply touch a Samsung Galaxy S7" )
ent:Kill()
self:Remove()
end
end
end
[/lua]
[url]http://pastebin.com/R5CtpNg8[/url]
Thanks, I'll be replacing the C4 model on my server with this.
I've always wondered how terrorists could blow something up by calling a phone...
now I understand.
For extra points,
[code]
for _, v in pairs(ents.FindInBox(ent:GetPos(), 250)) do
v:Ignite()
end
[/code]
If you're running some gamemodes, that fire will spread.
This is awesome lol.
Any chance you could extrapolate the viewmodel from somewhere too?
[QUOTE=kpjVideo;51194303]I've always wondered how terrorists could blow something up by calling a phone...
now I understand.[/QUOTE]
funny enough it's really easy
What Im planning is maybe throw in some more skins and adding a second prop that explodes. Imma decompile the explosive barrel and try messing around with that. If anyone does actually code this properly then make sure you paste the link here!
[QUOTE=Bassnecter;51195018]What Im planning is maybe throw in some more skins and adding a second prop that explodes. Imma decompile the explosive barrel and try messing around with that. If anyone does actually code this properly then make sure you paste the link here![/QUOTE]
[url]https://developer.valvesoftware.com/wiki/Prop_data[/url]
it would be done in the QC file
It's not the S7 that explodes...
Edit: Glad to know just how smart FP is.
[QUOTE=VeXan;51196059]It's not the S7 that explodes...[/QUOTE]
No shit its not like he didnt already say that in OP
snipo
scaling is WAY wrong on this.
Didn't the note 7 explode though, not the S7?
Technically, "explode" is just a nice, short term to get people to click on a dramatic news story.
The actual term is "Overheat, start sizzling and emitting extremely toxic smoke, possibly start a fire, all at zero notice".
We need the washing machine from samsung too !
[IMG]http://i2.cdn.turner.com/money/dam/assets/160928113021-samsung-washing-machine-explodes-780x439.jpg[/IMG]
[QUOTE=lotus006;51199651]We need the washing machine from samsung too !
[IMG]http://i2.cdn.turner.com/money/dam/assets/160928113021-samsung-washing-machine-explodes-780x439.jpg[/IMG][/QUOTE]
Its obvious whoever designed the washing machine now designs note 7's.
[QUOTE=Redfiend;51201459]Its obvious whoever designed the washing machine now designs note 7's.[/QUOTE]
They put nuclear battery on washing machines now for be portable :) or not, dunno why everything explodes now lol !
[QUOTE=lotus006;51206047]They put nuclear battery on washing machines now for be portable :) or not, dunno why everything explodes now lol ![/QUOTE]
Because it doesn't explode. The phone doesn't explode, the lithium battery just melts, emits smoke and sometimes catches fire. The washing machine doesn't explode either, it just falls apart due to vibrations of imbalanced drum.
I've just made a SWEP out of it.
I know this code isn't really professional. But this weapon isn't meant to be seriously.
[url]https://github.com/markusmarkusz/gmod_samsung_s7[/url]
[QUOTE=mijyuoon;51206461]Because it doesn't explode. The phone doesn't explode, the lithium battery just melts, emits smoke and sometimes catches fire. The washing machine doesn't explode either, it just falls apart due to vibrations of imbalanced drum.[/QUOTE]
Not just that I don't get why people think S7 is having problems too, for some reason people are having a hard time to understand that Note series is different then S series
[QUOTE=vrej;51209395]Not just that I don't get why people think S7 is having problems too, for some reason people are having a hard time to understand that Note series is different then S series[/QUOTE]
Because people are either too st00pid or can't read and just latch onto the digit 7 probably. And then of course there's chained propagation from one idiot to his friends or just other idiots on the internet.
Lol i wanna go make a samsung note 7 grenade swep but im too lazy, sorry guys :v:
Sorry, you need to Log In to post a reply to this thread.