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.
Badsanta the new coding god?
-
LongHairedHuman
- Posts: 110
- Joined: 2010-11-23 16:03
Badsanta the new coding god?
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.
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.

-
kerrermanisNL
- Posts: 65
- Joined: 2011-01-04 07:52
Re: Badsanta the new coding god?
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.

Cohiba Esplandido, sir. Are you confiscating my cigar sir?
This cigar doesn't belong to you, it belongs to the army.

- Zrix
- Posts: 4425
- Joined: 2005-12-02 14:25
Re: Badsanta the new coding god?
Oh god my left ear.
Also, this seems familiar, isn't he in a thread somewhere already?
Also, this seems familiar, isn't he in a thread somewhere already?

-
LongHairedHuman
- Posts: 110
- Joined: 2010-11-23 16:03
Re: Badsanta the new coding god?
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.Zrix wrote:Oh god my left ear.
Also, this seems familiar, isn't he in a thread somewhere already?

-
Tim270
- PR:BF2 Developer
- Posts: 5166
- Joined: 2009-02-28 20:05
Re: Badsanta the new coding god?
Impressive!
-
|HBD|Bad_santa12345
- Posts: 23
- Joined: 2011-11-30 11:35
Re: Badsanta the new coding god?
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)kerrermanisNL wrote:Pretty cool, though it's also important how "efficient" it is
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?
really? lol, didn't know that[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.
Other than that bit being incorrect, the rest is still the same
BTW in what way dose the tr.exe handle the markers?
-
mockingbird0901
- Posts: 1053
- Joined: 2009-05-13 17:30
Re: Badsanta the new coding god?
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.Alek-say wrote:Great! I would like to see this in the next PR version!
Other then that, I think it looks great
Edit: Da fuq? How did my post end all the way up here?
-
Rhino
- Retired PR Developer
- Posts: 47909
- Joined: 2005-12-13 20:00
Re: Badsanta the new coding god?
forums seem to be 1hr behind what they where all of a sudden....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
Edit: Da fuq? How did my post end all the way up here?
And ye, not a copy and paste job
-
Navo
- Posts: 1389
- Joined: 2011-05-22 14:34
Re: Badsanta the new coding god?
The amount of times devs said this is hardcoded... 
-
Rhino
- Retired PR Developer
- Posts: 47909
- Joined: 2005-12-13 20:00
Re: Badsanta the new coding god?
Nice work BadS, looks interesting but a bit worried on a few aspects of it.
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.
You should review what hard coded actually means: Hard coding - Wikipedia, the free encyclopediaNavo wrote:The amount of times devs said this is hardcoded...![]()
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.
-
Arnoldio
- Posts: 4210
- Joined: 2008-07-22 15:04
Re: Badsanta the new coding god?
This and jamming would be great addition to PR gun world. 

Orgies beat masturbation hands down. - Staker
-
Mosquill
- Retired PR Developer
- Posts: 857
- Joined: 2007-08-12 10:13
Re: Badsanta the new coding god?
So... how is the code that switches animations triggered? That's the interesting part for me.
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.[R-DEV]Rhino wrote:in the same way that technically Thermals are hard coded, but we can archive it though a 3rd part .exe
-
Alek-say
- Posts: 349
- Joined: 2010-11-27 20:17
-
Wakain
- Posts: 1159
- Joined: 2009-11-23 21:58
Re: Badsanta the new coding god?
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?
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?
Fair enough, but my point stands.'[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.
-
|HBD|Bad_santa12345
- Posts: 23
- Joined: 2011-11-30 11:35
Re: Badsanta the new coding god?
hudbuilder.setnodeshowvariable PrimaryAmmoBlink[R-DEV]Mosquill wrote:So... how is the code that switches animations triggered?
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.



