Man, that's nearly 10 years of accumulated scripting knowledge. Can you show us any reference to your epic work? If you dare, could you quickly implement something like this?
Shouldn't be too hard, right? Prove your skillz, walk your talk. I hope you won't miss setVelocity. What you gonna do? Apply MOD_DAMAGE multiple times?
ATM you are making a show, which basically begs for help duo to lack of understanding. Muh, libcod shit, gimme libcod test server, prove it to me! Well, just install VMWare or buy some cheap VPS to test. My first VPS years ago didn't even cost 3€ per month and I had to lower com_hunkmegs to get CoD2 to work duo too lack of RAM. Wasn't perfect, but good enough :^)