My Mod: ProFrag


(Ramoonus) #21

wicked …


(jamez) #22

this sounds ok to me, but you should add things like headshots instant cvar (i found this to make et more aobut acc.)
landmine damage
medic health regain
cvar to disable medics picking own health packs (can check if their own thru ent->parent)

and btw is this ment to be a mod for competitions or just an all purpose mod because if its ment to be all -purpose type (fun server, etc)
akimbo panzers, i would hate this but i know many who would love it
thermite grenades (when i finish this i will post code)
and i had an idea for nades sticking to people, they would release smoke at the origin of ent->parent->parent but it didnt work exactly


(MessiaH) #23

cool jamez,

I’m not sure where to start with instagib and a lot of other things you said
i’ve never even done any C programming before this, just learning =)

By the way…

New Command Added

pf_needleDamage ( Default = “70” )

This command controls the amount of damage that is taken from a player when they strike them with a needle.
At default, deadly needles will take 70 damage from an enemy.
Example: Setting it to 200 = 200 damage

Setting pf_needleDamage to 0 will disable deadly needles.


(jamez) #24

oo MessiaH i have code for headshots being instant death (gibbing is a bit too far)

<replace the normal part with this is in function g_damage() in g_combat.c>

if ( headShot ) {
if (take * 3 < 180) //if under gib damage do *3 damage
take *= 3; // sniper rifles can do full-kill (and knock into limbo)
else
take = 180; // insure no gibbing by only killing this much
if( dflags & DAMAGE_DISTANCEFALLOFF ) {
vec_t dist;
vec3_t shotvec;

  	VectorSubtract( point, muzzleTrace, shotvec );
  	dist = VectorLength( shotvec );

  	if( dist &gt; 1500.f ) {
  		if( dist &gt; 2500.f ) {
  			take *= 0.2f;
  		} else {
  			float scale = 1.f - 0.2f * (1000.f / (dist - 1000.f));

  			take *= scale;
  		}
  	}
  }

(m242) #25

-Global landmine armed message is sent also displaying the team who has planted a landmine.

I’m curious to know what your rationale is for this. Why would you want to give away the fact that you’re planting mines?


(jamez) #26

he means global to team


(bacon) #27

“Global landmine armed message is sent also displaying the team who has planted a landmine.”

Are you sure?


(jamez) #28

sorry i must have skipped that…

i see no motive either for the landmine status being sent everwhere

-Global dynamite armed message is sent also displaying the team who has planted a dynamite.

so basically now instead of dynamite planted at axis command post ‘allies planted dynamite at axis command post’?


(MessiaH) #29

No no, for dynamite that is not planted at an objective.
It sends a message

if Axis
“ProFrag: An Axis engineer has planted dynamite.”

if Allies
"ProFrag: An Allied engineer has planted dynamite.


(MessiaH) #30

New Command Added

pf_noLandmines ( Default = “0” )

If this command is set to 1, when a player drops a landmine and attempts to arm it, it will not arm and send the player a message
saying that landmines are disabled on this server.


(MessiaH) #31

New Command Added

pf_unlimitedGrenades ( Default = “0” )

If this command is set to 1, all player classes spawn with 999 grenades.


(MessiaH) #32

New Commands Added

pf_medicAmmo ( Default = “0” )

This command controls the amount of Ammo a medic starts with in their reserve.
Normally a medic starts with no ammo in their reserve if this command is set to 0.
Example: Setting this command to 120 = Medics start with 120 rounds of ammo in their reserve.

pf_foAmmo ( Default = “30” )

This command controls the amount of Ammo a field op starts with in their reserve.
Normally a field op starts with 30 ammo in their reserve if this command is set to 30.
Example: Setting this command to 120 = Field ops start with 120 rounds of ammo in their reserve.

pf_engAmmo ( Default = “30” )

This command controls the amount of Ammo an engineer starts with in their reserve.
Normally a engineer starts with 30 ammo in their reserve if this command is set to 30.
Example: Setting this command to 120 = Engineers start with 120 rounds of ammo in their reserve.

This command alters the starting ammo in a Engineer’s Thompson/MP-40 only.

pf_noChat ( Default = “0” )

If this command is set to 1, global chat is disabled for all players.
If a player attempts to make a global chat message, they will recieve a message
saying “The administrator has disabled global chatting on this server”.

ModVersion

This CVAR command alerts the admin of the ProFrag mod version running.

New Command Update

pf_unlimitedGrenades command is now cheat protected.
sv_cheats must be set to 1, for this command to be altered.


(MessiaH) #33

New Command Added

pf_instagib ( Default = “0” )

If this command is set to 1, headshot instagib is enabled.
When headshot instagib is enabled, all players spawn with an FG42 with unlimited ammo, no other weapons/items.
In headshot instagib mode any shot to the head will instantly kill and gib a player.
A shot to any other part of the body will do normal damage.

It is recommended friendly fire is disabled while instagib headshot mode is enabled.


(nUllSkillZ) #34

Little remark:

pf_noChat ( Default = “0” )

It would be easier if you use:
pf_chat (default = “1”)
You don’t have to think so much. :slight_smile:


(pgh) #35

Would like to see:

pf_chatcolor
pf_teamchatcolor
pf_fireteamchatcolor

… and so on… :]


(Ramoonus) #36

ej man; wicked mod (Y)
keep it up (Y)

plz contact me by msn, ICQ or email me

Ramon


(MessiaH) #37

Thanks guys.
I made an attempt at the colored chat CVARs but it’s completely bugged and didn’t work at all…


(bacon) #38

The no chat thing is a really stupid idea. That takes away from some of the interactivity of the game, which can make people leave the servers really fast.
Your instagib is not true instagib, you should make it so you don’t need a headshot for it to gib, and give them sniper rifles instead of FG42.


(MessiaH) #39

bacon, I want the chat thing so it “can” be enabled, in a lot of situations it may be needed.
I know it is not true instagib, and I want it like that.

I will probably implement the true instagib later on.


(MessiaH) #40

Command Update

pf_instagib now uses the K43 weapon instead of the FG42. The FG42 was not accurate enough for instagib headshot mode.