Badsanta the new coding god?

Making or wanting help making your own asset? Check in here
LongHairedHuman
Posts: 110
Joined: 2010-11-23 16:03

Badsanta the new coding god?

Post by LongHairedHuman »

Greetings people,

Yesterday, I found a video in my sub box on YouTube. I thought it was really cool, and I think it is a new level of coding for the BF2 engine. Today, I saw another video in my sub box. I thought, this must be seen by the community, so here it is, an awesome achievement by Badsanta123456.


Image
kerrermanisNL
Posts: 65
Joined: 2011-01-04 07:52

Re: Badsanta the new coding god?

Post by kerrermanisNL »

Pretty cool, though it's also important how "efficient" it is
What's this?
Cohiba Esplandido, sir. Are you confiscating my cigar sir?
This cigar doesn't belong to you, it belongs to the army.

Image
User avatar
Zrix
Posts: 4425
Joined: 2005-12-02 14:25

Re: Badsanta the new coding god?

Post by Zrix »

Oh god my left ear.



Also, this seems familiar, isn't he in a thread somewhere already?
Image
LongHairedHuman
Posts: 110
Joined: 2010-11-23 16:03

Re: Badsanta the new coding god?

Post by LongHairedHuman »

Zrix wrote:Oh god my left ear.



Also, this seems familiar, isn't he in a thread somewhere already?
Yes, I thought the same, I saw his videos on the forums before, though this new discovery, different reload times and animations, deserves a thread on its own.
Image
Tim270
PR:BF2 Developer
Posts: 5166
Joined: 2009-02-28 20:05

Re: Badsanta the new coding god?

Post by Tim270 »

Impressive!
|HBD|Bad_santa12345
Posts: 23
Joined: 2011-11-30 11:35

Re: Badsanta the new coding god?

Post by |HBD|Bad_santa12345 »

kerrermanisNL wrote:Pretty cool, though it's also important how "efficient" it is
The effiecency might indeed become a problem if this was ever implemented in to a mod with the size of PR. For the reload system each weapon needs to have a unique guiindex and about 50 lines of code. Also the weapon coding needs to be unified (preferably name the weapons and animation files after their respective guiindexes)

And sorry about the sounds in the video for some reason fraps fucks them up.
Last edited by |HBD|Bad_santa12345 on 2012-03-22 16:20, edited 1 time in total.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: Badsanta the new coding god?

Post by Rhino »

[R-DEV]Mosquill wrote:Well that's not true. Thermals are made with pure bf2 coding, so they're not actually hard coded. In fact, tr.exe only does one thing: markers.
really? lol, didn't know that :p

Other than that bit being incorrect, the rest is still the same :p

BTW in what way dose the tr.exe handle the markers?
Image
mockingbird0901
Posts: 1053
Joined: 2009-05-13 17:30

Re: Badsanta the new coding god?

Post by mockingbird0901 »

Alek-say wrote:Great! I would like to see this in the next PR version!
Don't think it's as easy as just copy and paste some code.... So I wouldn't hold my breath if I were you.
Other then that, I think it looks great :D

Edit: Da fuq? How did my post end all the way up here?
I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones.
-Albert Einstein
Volens et potens

Tema567 just might be my new hero
Image
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: Badsanta the new coding god?

Post by Rhino »

mockingbird0901 wrote:Don't think it's as easy as just copy and paste some code.... So I wouldn't hold my breath if I were you.
Other then that, I think it looks great :D

Edit: Da fuq? How did my post end all the way up here?
forums seem to be 1hr behind what they where all of a sudden.... :roll:

And ye, not a copy and paste job :p
Image
Navo
Posts: 1389
Joined: 2011-05-22 14:34

Re: Badsanta the new coding god?

Post by Navo »

The amount of times devs said this is hardcoded... :D
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: Badsanta the new coding god?

Post by Rhino »

Nice work BadS, looks interesting but a bit worried on a few aspects of it.
Navo wrote:The amount of times devs said this is hardcoded... :D
You should review what hard coded actually means: Hard coding - Wikipedia, the free encyclopedia

Since this requires a 3rd part .exe to do the timing delays for the two different reloads, this is still technically hard coded, in the same way that technically Thermals are hard coded, but we can archive it though a 3rd part .exe

What we are most worried about this thou is how this could be exploited if implemented. That's not to mention the massive amount of work it would take to implement this into PR but if we could get a reliable system then we would certainly consider it.
Image
Arnoldio
Posts: 4210
Joined: 2008-07-22 15:04

Re: Badsanta the new coding god?

Post by Arnoldio »

This and jamming would be great addition to PR gun world. :D
Image


Orgies beat masturbation hands down. - Staker
Mosquill
Retired PR Developer
Posts: 857
Joined: 2007-08-12 10:13

Re: Badsanta the new coding god?

Post by Mosquill »

So... how is the code that switches animations triggered? That's the interesting part for me.
[R-DEV]Rhino wrote:in the same way that technically Thermals are hard coded, but we can archive it though a 3rd part .exe
Well that's not true. Thermals are made with pure bf2 coding, so they're not actually hard coded. In fact, tr.exe only does one thing: markers.
Alek-say
Posts: 349
Joined: 2010-11-27 20:17

Re: Badsanta the new coding god?

Post by Alek-say »

Great! I would like to see this in the next PR version!
Image
Image
Wakain
Posts: 1159
Joined: 2009-11-23 21:58

Re: Badsanta the new coding god?

Post by Wakain »

it seems there is a lot still to be explored with 3rd party .exe's
ShockUnitBlack
Posts: 2100
Joined: 2010-01-27 20:59

Re: Badsanta the new coding god?

Post by ShockUnitBlack »

Need fastropes naow!
"I Want To Spend The Rest Of My Life With You Tonight."
Navo
Posts: 1389
Joined: 2011-05-22 14:34

Re: Badsanta the new coding god?

Post by Navo »

'[R-DEV wrote:Rhino;1747890']Nice work BadS, looks interesting but a bit worried on a few aspects of it.



You should review what hard coded actually means: Hard coding - Wikipedia, the free encyclopedia

Since this requires a 3rd part .exe to do the timing delays for the two different reloads, this is still technically hard coded, in the same way that technically Thermals are hard coded, but we can archive it though a 3rd part .exe

What we are most worried about this thou is how this could be exploited if implemented. That's not to mention the massive amount of work it would take to implement this into PR but if we could get a reliable system then we would certainly consider it.
Fair enough, but my point stands. ;-)
|HBD|Bad_santa12345
Posts: 23
Joined: 2011-11-30 11:35

Re: Badsanta the new coding god?

Post by |HBD|Bad_santa12345 »

[R-DEV]Mosquill wrote:So... how is the code that switches animations triggered?
hudbuilder.setnodeshowvariable PrimaryAmmoBlink
hudbuilder.setnodelogicshowvariable NOT PrimaryAmmoBlink 1 ;-)
Just as a test the pistol thing is done differently and doesnt work very well on dedi but it can also be done with PrimaryAmmoBlink and some clever coding.
Post Reply

Return to “PR:BF2 Community Modding”