Those Simple "Source Programming Questions" Thread...

Grab your favourite IDE and tinker with the innards of game engines

Re: Those Simple "Source Programming Questions" Thread...

Postby fishshapedfish on Sun Nov 04, 2012 7:56 pm

You need the entries form the hl2 skill.cfg file in your asw mod's skill.cfg file. It defines all of the damage amounts in hl2 including the zombie's.
Check Out the Team's Latest Mod!
WIP Screenshots
Recruiting/Our Goals
User avatar
fishshapedfish
Regular
Regular
 
Joined: Fri Aug 05, 2011 5:44 pm

Re: Those Simple "Source Programming Questions" Thread...

Postby Ackart on Sun Nov 04, 2012 8:49 pm

fishshapedfish wrote:You need the entries form the hl2 skill.cfg file in your asw mod's skill.cfg file. It defines all of the damage amounts in hl2 including the zombie's.

I've already thrown that in. In fact, I set up new skill defines for the NPC and I even went as far as to just manually setting damage values in the MeleeAttack/ClawAttack function, but no dice.
User avatar
Ackart
Member
Member
 
Joined: Tue Jun 10, 2008 9:32 pm
Location: Austin, TX

Re: Those Simple "Source Programming Questions" Thread...

Postby stoopdapoop on Sun Nov 04, 2012 9:42 pm

why don't you just set a breakpoint before the line of code that's supposed to call it to see what condition is not being met?

These should be some of the easiest bugs to figure out.
I'm Brown
Image
User avatar
stoopdapoop
Veteran
Veteran
 
Joined: Sun Aug 21, 2005 2:14 am
Location: Ann Arbor, MI

Re: Those Simple "Source Programming Questions" Thread...

Postby Ackart on Sun Nov 04, 2012 11:52 pm

stoopdapoop wrote:why don't you just set a breakpoint before the line of code that's supposed to call it to see what condition is not being met?


Because, to be honest, I've never actually touched the debugging tools in VS before. Programming isn't exactly my forte in any way, shape or form, but no one else is gonna do it so I have to learn. :P Anyway, I'll give that a shot when I get home tonight, thanks!
User avatar
Ackart
Member
Member
 
Joined: Tue Jun 10, 2008 9:32 pm
Location: Austin, TX

Re: Those Simple "Source Programming Questions" Thread...

Postby Swog on Tue Nov 06, 2012 12:26 am

Why can't I compile my mod under Visual Studios 2012?
User avatar
Swog
Regular
Regular
 
Joined: Sun Nov 04, 2012 4:48 am

Re: Those Simple "Source Programming Questions" Thread...

Postby LordDz on Tue Nov 06, 2012 9:35 am

Swog wrote:Why can't I compile my mod under Visual Studios 2012?


I can. However I can only do it in release mode.. But have you followed these tutorials?

https://developer.valvesoftware.com/wik ... ource_Code
https://developer.valvesoftware.com/wik ... e_problems
User avatar
LordDz
May Contain Skills
May Contain Skills
 
Joined: Mon Sep 01, 2008 12:28 pm
Location: Hammer Crash Logs

Re: Those Simple "Source Programming Questions" Thread...

Postby fishshapedfish on Tue Nov 06, 2012 10:07 pm

Been having problems getting jang's nice particle effect to dispatch properly. I programmed it to spawn at my npc's origin (it's feet) but it just refuses to stay there.

It's a bit hard to see so you will need to watch it fullscreen. It's ment to be black smoke, you can just see a wisp of it flying away from the npc's when it spawn them. I believe it is flying to the maps origin and then disappearing but I could be wrong.
Check Out the Team's Latest Mod!
WIP Screenshots
Recruiting/Our Goals
User avatar
fishshapedfish
Regular
Regular
 
Joined: Fri Aug 05, 2011 5:44 pm

Re: Those Simple "Source Programming Questions" Thread...

Postby Jangalomph on Wed Nov 07, 2012 6:44 am

You dont need to code it to spawn at their feet, you're supposed to code it so it locks to any bone, perhaps their neck or something, and then the particle should randomly spawn all over the model. If you can find the way they dispatch ignition of any entity, you should beable to do it exact same way. Just image the npc on fire, but with my shadow smoke stuff.
http://www.nomoreroominhell.com
I don’t know whether I was right or wrong, I guess I’ll never know… But I made it. And I guess I should be thankful for that. - Strelok
Has anyone really been far even as decided to use even go want to do look more like?
User avatar
Jangalomph
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Wed Jun 25, 2008 3:19 pm
Location: Sumter, SC

Re: Those Simple "Source Programming Questions" Thread...

Postby fishshapedfish on Wed Nov 07, 2012 5:05 pm

That's kind of what I did, I 'locked' it to the model's origin instead of an attachment. I'll try it your way if my decompiler will work. :cry: Then add in some attachments into the qc. I hope it works!
Check Out the Team's Latest Mod!
WIP Screenshots
Recruiting/Our Goals
User avatar
fishshapedfish
Regular
Regular
 
Joined: Fri Aug 05, 2011 5:44 pm

Re: Those Simple "Source Programming Questions" Thread...

Postby fishshapedfish on Wed Nov 07, 2012 7:08 pm

Image I was right, the particle effect was flying to the map's origin. Even after I changed the code to attach the particle to an attachment it still did this. WTF is happening!
Check Out the Team's Latest Mod!
WIP Screenshots
Recruiting/Our Goals
User avatar
fishshapedfish
Regular
Regular
 
Joined: Fri Aug 05, 2011 5:44 pm

Re: Those Simple "Source Programming Questions" Thread...

Postby zombie@computer on Wed Nov 07, 2012 7:14 pm

Particle parenting to model attachments is borked. There's a code fix on the vdc. Did you try it?

https://developer.valvesoftware.com/wik ... cle_Effect
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Re: Those Simple "Source Programming Questions" Thread...

Postby Jangalomph on Wed Nov 07, 2012 7:18 pm

Yep, make sure you fix the attachment code, if you don't the particle only knows to spawn at the origin of the map
0, 0, 0
http://www.nomoreroominhell.com
I don’t know whether I was right or wrong, I guess I’ll never know… But I made it. And I guess I should be thankful for that. - Strelok
Has anyone really been far even as decided to use even go want to do look more like?
User avatar
Jangalomph
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Wed Jun 25, 2008 3:19 pm
Location: Sumter, SC

Re: Those Simple "Source Programming Questions" Thread...

Postby fishshapedfish on Wed Nov 07, 2012 7:53 pm

Yeah I did the fix, no luck though :(
Check Out the Team's Latest Mod!
WIP Screenshots
Recruiting/Our Goals
User avatar
fishshapedfish
Regular
Regular
 
Joined: Fri Aug 05, 2011 5:44 pm

Re: Those Simple "Source Programming Questions" Thread...

Postby LordDz on Thu Nov 08, 2012 1:00 pm

Look how the manhack attaches its GlowTrail, should be the same thing?
User avatar
LordDz
May Contain Skills
May Contain Skills
 
Joined: Mon Sep 01, 2008 12:28 pm
Location: Hammer Crash Logs

Re: Those Simple "Source Programming Questions" Thread...

Postby Jangalomph on Thu Nov 08, 2012 6:31 pm

I told you to try and see how they ignite props etc.

If you can figure out how npc's have fire parented to them, then you'll be good to go.
http://www.nomoreroominhell.com
I don’t know whether I was right or wrong, I guess I’ll never know… But I made it. And I guess I should be thankful for that. - Strelok
Has anyone really been far even as decided to use even go want to do look more like?
User avatar
Jangalomph
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Wed Jun 25, 2008 3:19 pm
Location: Sumter, SC
PreviousNext

Return to Programming

Who is online

Users browsing this forum: No registered users

cron